[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cookie Cache



In message <m0pMplc-0000aDC@sdf.lonestar.org>, Evan K. Langlois wrote:
>
>I think this is a great idea.  Watching the OS traces, I noticed that the
>Freadlink call is recursive.  This means that if called on 100 files
>it doesn't get called 100 times but 100 * the number of times the path is
>nested, so if the directory is 10 directories deep you get 1000 calls.

It's nothing to do with the recursion (rewriting it iteratively would
mean you'd go through a loop 1000 times rather than 1000 nested calls).

But the need for caching as a solution to all these repeated activities
is definately correct.

--
Warwick