I'm about to check in code that swabs integer keys
to network order in an rpmdb always.
network order is being used so that btree/hash duplicate
sorting can continue to use the default memcmp on octet's
without performance penalty and to eliminate the need
to create custom sort functions.
The only two indices affected when using the default
tag configuration are Installtid and Packagecolor.
(aside)
Removetid will likely be added as an index on
repackaged packages in /var/spool/repackage shortly.
Access of Installtid/Packagecolor (and all other integer indices)
will swab native endian keys during access through the rpmmi iterator, so
the change to network order should (modulo bugs) affect nothing whatsoever in the API.
73 de Jeff
Received on Thu Dec 10 20:52:31 2009