summaryrefslogtreecommitdiff
path: root/get-version
diff options
context:
space:
mode:
authorRaphaël Hertzog <hertzog@debian.org>2009-11-08 13:34:30 +0100
committerRaphaël Hertzog <hertzog@debian.org>2009-11-08 13:42:26 +0100
commitf789211ee930507e91c111b3326790ce10fdc100 (patch)
tree573807092bcb03d1422288f4e7a4314bfa2e2d24 /get-version
parent7e10087ff285d78d4d1b5155f6127c21f27aecfd (diff)
downloaddpkg-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