filesystems - Is there a performance drop when we open a file in a directory that has huge numbers of files? -


suppose want open file in directory, there huge numbers of files. when requested program open file in there, how fast can search particular file? there performance drop looking requested file in case?

ps. should depend on file systems implementation, yes?

yes, depends lot on file system implementation.

some file systems have specific optimizations large directories. 1 example can think of is ext3, uses htree indexing large directories.

generally speaking there some delay find file. once file located/opened, however, reading should not slower reading other file.

some programs need handle large amount of files (for caching, example) put them in large directory tree, reduce number of entries per directory.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -