diff options
author | Modestas Vainius <modestas@vainius.eu> | 2008-12-05 13:43:37 +0200 |
---|---|---|
committer | Raphael Hertzog <hertzog@debian.org> | 2008-12-08 10:08:48 +0100 |
commit | 07efbb0889fcc6fab678ee727fc7c4013b163b53 (patch) | |
tree | 1bd12b97dd599956953689bde77121dff527a51b /ChangeLog | |
parent | f29e54ab5ccf99376dfb3a9ac824ea795c260e10 (diff) | |
download | dpkg-07efbb0889fcc6fab678ee727fc7c4013b163b53.tar.gz |
dpkg-shlibdeps: optimize by caching symbols files and objdump objects
* scripts/Dpkg/Shlibs/Objdump.pm (parse): Split into add_object()
and parse().
* scripts/Dpkg/Shlibs/SymbolFile.pm (merge_object_from_symfile):
New function to reintegrate symbols from previous symfiles.
* scripts/dpkg-shlibdeps.pl: Optimizes it by caching parsed
symbols files and objdump objects. This way neither of the
libraries or symbols files are parsed more than once.
This patch significantly improves performance of dpkg-shlibdeps bringing
it near to performance levels of versions prior to 1.14.8 without loosing
any of new functionally at all. Memory requirements are reduced too.
This patch SHOULD NOT change the end result of dpkg-shlibdeps. If it
does, it is a bug.
Improved-by: Raphael Hertzog <hertzog@debian.org>
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,14 @@ +2008-12-08 Modestas Vainius <modestas@vainius.eu> + Raphael Hertzog <hertzog@debian.org> + + * scripts/Dpkg/Shlibs/Objdump.pm (parse): Split into add_object() + and parse(). + * scripts/Dpkg/Shlibs/SymbolFile.pm (merge_object_from_symfile): + New function to reintegrate symbols from previous symfiles. + * scripts/dpkg-shlibdeps.pl: Optimizes it by caching parsed + symbols files and objdump objects. This way neither of the + libraries or symbols files are parsed more than once. + 2008-12-05 Guillem Jover <guillem@debian.org> * lib/mlib.c: Remove <sys/wait.h> include. |