summaryrefslogtreecommitdiff
path: root/luaext/linit.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-10-04 15:48:43 +0300
committerPanu Matilainen <pmatilai@redhat.com>2012-10-04 15:57:58 +0300
commitd5dd3abe097ae7c4a9552cdbf225af0309fd86db (patch)
tree546c4d17de97159f39ae786367dcf43f74418e9d /luaext/linit.h
parentbee348b5d101a0ea6039b56c39e8ddc1cfc09a1a (diff)
downloadlibrpm-tizen-d5dd3abe097ae7c4a9552cdbf225af0309fd86db.tar.gz
librpm-tizen-d5dd3abe097ae7c4a9552cdbf225af0309fd86db.tar.bz2
librpm-tizen-d5dd3abe097ae7c4a9552cdbf225af0309fd86db.zip
Be as lazy as possible wrt rpmal hash creation
- Separate provides and files hash creation, delay both until the last moment before first valid lookup. In practise, this means the provides hash is created early due to lookups from rpmtsAddInstallElement(), but the big bad file hash creation is delayed until the entire transaction set has been more-or-less populated. Which means we have a better idea about the necessary hash table size, meaning fewer hash resizes, resulting in good deal faster execution with no downsides - if something happened to trigger an early file lookup it'll all still work, just slower.
Diffstat (limited to 'luaext/linit.h')
0 files changed, 0 insertions, 0 deletions