On Thu, 4 Jun 2009, Rainer Gerhards wrote: > Hi all, > > as you probably know, dynafiles keep a cache of the n most recently used > files open. This is done in order to speed up processing. I wonder how many > files you usually expect to be open. The root of my question is that I think > about the algorithm that finds cache entries. So far, a simple linked list is > used, but I wonder if something more efficient (like a binary tree) would be > useful. On the other hand, if the cache size is really small, there is not > much difference between O(n) and O(log n), so it may not justify added code > complexity. > > Feedback appreciated.
I have a use case where it could be several thousand files I would expect the normal worst case to be dozens to a few hundred files. David Lang _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com

