setup ChangeLog PickVie ...
Fri Nov 26 14:21:00 GMT 2010

CVSROOT:	/cvs/cygwin-apps
Module name:	setup
Changes by:	2010-11-26 14:21:43

Modified files:
	.              : ChangeLog 

Log message:
	Change package_db collection of packages from vector to a map so we can look things up in it quickly
	This allows packagedb::findBinary() and packagedb::findSource() to be re-written to locate packages
	by name rather than searching the entire set, which makes a big difference to total execution time.
	* (IniDBBuilderPackage): Remove db.packages vector
	(buildPackage, buildPackageSource): Change package collection from vector
	to map.
	* (setViewMode, init_headers, defaultTrust): Ditto.
	* (createListview, logResults, keepClicked)
	(changeTrust): Ditto
	* (do_install_thread): Ditto
	* (do_download_thread): Ditto
	* (isMet): Ditto
	* (ScanDownloadedFiles): Ditto
	* package_db.h (packagedb): Ditto
	* (packagedb, flush, markUnVisited, setExistence)
	(fillMissingCategory): Ditto
	(findBinary, findSource): Rewrite to locate packages in map rather than
	searching the whole vector, for performance.
	(ConnectedLoopFinder, doIt, visit): Rewrite to refer to package using a
	packagemeta *, as an index into the vector of packages can no longer be


More information about the Cygwin-apps-cvs mailing list