On Wed, Apr 15, 2009 at 07:31:52PM -0500, Shawn Walker wrote: > Greetings, > > After our earlier discussions today about writing out a catalog cache, I > started doing further work to determine what actual benefit the cache > had. The following applies to my desktop system which has the extra, > opensolaris.org dev, and righthook punchin publishers & repositories > configured. > > A pkg list -a takes about 7.2s (on average) with the gate tip version of > pkg(5). > > If I instead change that to not bother loading the catalog cache at all, > but just re-generating it, that only goes up to about 7.9s. So caching > the catalogs is only gaining us about .7s, which doesn't seem like a big > benefit given that the catalog cache takes up 7.3M right now. > > So, at this point, I think it's just best to ditch the catalog cache > completely. > > I can revisit making other scenarios faster (such as all installed > packages or other scenarios we discussed) later. > > Thoughts?
One of the use cases that used to be problematic was the full list of packages in the catalog. I think that's equivalent to list -af in today's code. Any idea how the removal of the cache affects the performance of that case? -j _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
