On Tue, Jan 1, 2013 at 2:10 AM, Alec Warner <anta...@gentoo.org> wrote: > flatfile lookups are 2-4ms with hot cache. How much faster is the db > option?
I guess it depends on the implementation and how close is the system's operational situation to an ideal one (whether swap started thrashing, etc.). A DB is the proper solution that can be improved if necessary (e.g., keeping often-used parts in RAM). Filesystem where it resides can be offered hardware with lower seek time or better cache. But I agree that it is easy to rationalize bad solutions. I don't like waiting on an "ls -l" in addition to the system not being responsive due to some other reason, though. But maybe I am expecting too much, with even PolKit delegating each query to a full-blown Javascript library nowadays. -- Maxim Kammerer Liberté Linux: http://dee.su/liberte