|
|
|
|
|
by propa
2762 days ago
|
|
Your calculation (`400K * 8 bytes = ~3 MB`) is way off. What would be the point of storing only the size? You need to map it back to the file. 60MB gives you about 150 bytes for file path or file name and its size, which sounds plausible. |
|
So I think 50 bytes per file is easy to accomplish if (name/parent/path) + size is all you want to cache. For speed-up, I would add another 4 or 8 bytes index to map each directory to its first child.