Optimize header data python conversion for array tags a bit
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 8 Mar 2012 08:02:51 +0000 (10:02 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 8 Mar 2012 08:02:51 +0000 (10:02 +0200)
commit1432d5338336e6000263ad5d6a5836574e85ff91
tree98ed39c57deab0161d79eba4b8e73868567a1df3
parent5cf61c9a75a573238fdeba7332a6bcad25b86953
Optimize header data python conversion for array tags a bit

- We know the array size beforehand, allocate the entire array
  at once and set the elements instead of appending one by one.
  This is (an obvious) and well-measurable, if not a huge, win.
python/rpmtd-py.c