Only rehash the pool on insert if the data area actually moved
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 12 Sep 2012 16:29:28 +0000 (19:29 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 12 Sep 2012 16:29:28 +0000 (19:29 +0300)
commit2ea2a0961f380d844e4e1541df4f2c05f3b78449
treee2288e92a6174ef17c58c0d25738379b370468ba
parent86036abb978cb4bacc552446389e813554fdf2b0
Only rehash the pool on insert if the data area actually moved

- realloc() might not need to actually move the data, and when it
  doesn't we dont need to do the very expensive rehash either.
  Unsurprisingly makes things a whole lot faster.
rpmio/rpmstrpool.c