Shawn Walker wrote:
Greetings,
The following webrev contains fixes for the following issues:
2557 catalog cache pickle file dependent on fmri and version object
definitions
6221 AttributeError while reading catalog.pkl
webrev:
http://cr.opensolaris.org/~swalker/pkg-2557/
Some notes before I forget:
For a system with opensolaris.org/dev, extras, and the punchin
repository configured catalog cache:
* was previously 7.4M using cpickle
* is now 1.7M using flat file
The cache loads may now take as much as 7-8% longer (100-900ms typically).
However, as the number of entries in the catalogs grow, this decreases,
and eventually the flat file method becomes faster than the pickle.
Notably, the addition of the pending repository to the same system (an
extra 11,000 packages) resulted in an increase to 10M for the cpickle
cache, but only to 2.3M for the flat file. So long-term scalability is
better for the new method plus it uses less disk space and one less module.
Finally, I also evaluated remove the catalog cache entirely since on
faster systems (such as my 3.0 GHz Core 2 Duo 8GB ram desktop) it
provides little performance benefit. However, on slower systems (such
as my Sony Vaio Core 2 Duo 2.4 GHz 2GB ram laptop) there was a reduction
in operation time as much as 1-3 seconds with the cache. As such, it
seems best to keep the cache for now or alter it to be specialised later.
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss