[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rpm-devel
Subject:    A fully cross-platform rpmdb
From:       Jeff Johnson <n3npq () mac ! com>
Date:       2009-12-10 19:51:37
Message-ID: 3EA1AB83-A0CC-46B3-B4A7-E014D132CB17 () mac ! com
[Download RAW message or body]

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
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic