"Optimize" addFingerprints() a bit
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 3 Sep 2012 08:16:13 +0000 (11:16 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 3 Sep 2012 11:24:12 +0000 (14:24 +0300)
commitd5dc69c18e5ec79db3c4ab26c948c92e399577be
tree22edf09588ecd0abb00c480572c5cb87692af3c1
parentf7f02fb6cbf0d048adb42acc9250868420f2d3e8
"Optimize" addFingerprints() a bit

- Avoid repeatedly calling rpmteGetFileStates() for every file processed
- Avoid rpmfi iteration, use a good ole for-loop and index-accessors
- Dont bother looking up symlinks for skipped files
- Eliminate rpmfi from the latter loop, its not used for anything there
- Not that this is going to show on wall-clock times, the cycles saved here
  are going to get very much lost in the noise of more expensive things.
lib/transaction.c