]> git.saurik.com Git - apt.git/commit
Optimize VersionHash() to not need temporary copy of input
authorJulian Andres Klode <jak@debian.org>
Tue, 27 Sep 2016 16:28:55 +0000 (18:28 +0200)
committerJulian Andres Klode <jak@debian.org>
Tue, 22 Nov 2016 21:58:18 +0000 (22:58 +0100)
commitf903069c139df58d1ba855f7cf02c4a2d4e51dc3
treeafeaaa1079fd67e99d7ab37f68eecb37988d5161
parent7a3b00b10b6a5a740e07fc1b68a4f3fb3bcdac23
Optimize VersionHash() to not need temporary copy of input

Stop copying stuff, and just parse the bytes one by-one to the
newly created AddCRC16Byte. This improves the instruction count
for an update run from 720,850,121 to 455,801,749 according to
callgrind.
apt-pkg/contrib/crc-16.cc
apt-pkg/contrib/crc-16.h
apt-pkg/deb/deblistparser.cc