On Fri, 06 Mar 2009, Raphael Hertzog wrote:
> So it looks like most of the slowness comes from the new code and not
> from the patch application logic. Some profiling is in order then…

The answer was easy (thanks to dam for the hint). If one uses
--without-quilt, it's quick again.  So the problem is that calling quilt
once for each patch to apply is not a good idea.

We should rewrite apply_patches() in Dpkg::Source::V3::quilt to do:

foreach patch
  analyze patch
  create missing directories
  apply patch unless quilt is used
call quilt push -a if quilt is used
foreach analyzed patch
  fix timestamps

Cheers,
-- 
Raphaël Hertzog

Contribuez à Debian et gagnez un cahier de l'admin Debian Lenny :
http://www.ouaza.com/wp/2009/03/02/contribuer-a-debian-gagner-un-livre/



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to