Accessing directory or file very fast
Posted on 2004-09-29
This question is related to C algorithm and not to any OS as such.
My structure is something like this
Typedef struct file_or_directory
I create new directories or files in my application. Now user will access for file by name and need to access it very fast. How would one do?
Forget about, how file is created? How file is accessed? And all that.
My first question is how would you access it fast?
I will ask next question after this.