diff options
author | Raphaël Hertzog <hertzog@debian.org> | 2009-11-08 13:34:30 +0100 |
---|---|---|
committer | Raphaël Hertzog <hertzog@debian.org> | 2009-11-08 13:42:26 +0100 |
commit | f789211ee930507e91c111b3326790ce10fdc100 (patch) | |
tree | 573807092bcb03d1422288f4e7a4314bfa2e2d24 /get-version | |
parent | 7e10087ff285d78d4d1b5155f6127c21f27aecfd (diff) | |
download | dpkg-f789211ee930507e91c111b3326790ce10fdc100.tar.gz |
Dpkg::Source::Patch::add_diff_directory(): small optimization
The calls to File::Spec->abs2rel() are relatively expensive and can be
avoided given that we control the find() invocation and can only receive
filenames below the scanned directory. They are replaced with simple
string extraction with substr(), it gives another 25% speed benefit on big
source packages.
Based-on-patch-by: Mike Hommey <mh@glandium.org>
Diffstat (limited to 'get-version')
0 files changed, 0 insertions, 0 deletions