[debhelper-devel] Bug#793443: debhelper: Could use Dpkg::Arch::debarch_is instead of dpkg-architecture
Guillem Jover
guillem at debian.org
Fri Jul 24 04:39:00 UTC 2015
Package: debhelper
Version: 9.20150629
Severity: wishlist
Tags: patch
Control: block 793404 by -1
Hi!
debhelper might do some expensive calls to dpkg-architecture to check
if an architecture matches a wildcard. Most of the overhead can be
avoided by directly using the perl module Dpkg::Arch. Although it is
not currently marked as public, the function necessary here should be
considered stable, and I'm marking the module as public and exposing
a subset of its functions with dpkg 1.18.2 (including the one used
here). Also the debarch_is function has been part of Dpkg::Arch since
1.14.8 with the exact same semantics.
Here's a tentative untested patch that tries to do that. I'm not sure
how much of a speed up this would give though.
Thanks,
Guillem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Dh_Lib-Use-Dpkg-Arch-debarch_is-insted-of-calling-dp.patch
Type: text/x-diff
Size: 1684 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20150724/d481200b/attachment-0002.patch>
More information about the debhelper-devel
mailing list