Re: Optimizing union.scm

2014-03-27 Thread Ludovic Courtès
Mark H Weaver skribis: > Here's a second draft of union.scm, incorporating your suggestions. > I haven't yet replaced the use of the hash table, though. Looks good to me! Ludo’.

Re: Optimizing union.scm

2014-03-27 Thread Mark H Weaver
Here's a second draft of union.scm, incorporating your suggestions. I haven't yet replaced the use of the hash table, though. Mark ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2012, 2013, 2014 Ludovic Courtès ;;; Copyright © 2014 Mark H Weaver ;;; ;;; This file i

Re: Optimizing union.scm

2014-03-25 Thread Ludovic Courtès
Mark H Weaver skribis: > l...@gnu.org (Ludovic Courtès) writes: > >> Mark H Weaver skribis: [...] >>> * I've not yet updated tests/union.scm, which tests internal procedures >>> in union.scm that no longer exist. >> >> Right, the ‘tree-union’ and ‘delete-duplicate-leaves’ tests will have to

Re: Optimizing union.scm

2014-03-25 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > Mark H Weaver skribis: > >> Here's a first draft of a new union.scm. > > Thanks for being so fast! > >> On my YeeLoong 8101B, when building my 155-package profile, it uses >> about 1/14 as much CPU time (25 seconds vs 6 minutes), and about 2/7 as >> much r

Re: Optimizing union.scm

2014-03-25 Thread Ludovic Courtès
Mark H Weaver skribis: > Here's a first draft of a new union.scm. Thanks for being so fast! > On my YeeLoong 8101B, when building my 155-package profile, it uses > about 1/14 as much CPU time (25 seconds vs 6 minutes), and about 2/7 as > much real time (2 minutes vs about 7.17 minutes). It als

Re: Optimizing union.scm

2014-03-25 Thread Mark H Weaver
Here's a first draft of a new union.scm. On my YeeLoong 8101B, when building my 155-package profile, it uses about 1/14 as much CPU time (25 seconds vs 6 minutes), and about 2/7 as much real time (2 minutes vs about 7.17 minutes). It also handles libffi in core-updates properly. A few notes: *

Re: Optimizing union.scm

2014-03-24 Thread Ludovic Courtès
Mark H Weaver skribis: > l...@gnu.org (Ludovic Courtès) writes: > >> Mark H Weaver skribis: >> >>> I want to optimize it anyway, since it takes over 5 minutes to build >>> my profile, which is a bit painful. >> >> Oh, this much? >> >> I have 140 packages in my profile and it takes less than 30s

Optimizing union.scm

2014-03-23 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: > Mark H Weaver skribis: > >> I want to optimize it anyway, since it takes over 5 minutes to build >> my profile, which is a bit painful. > > Oh, this much? > > I have 140 packages in my profile and it takes less than 30s to build > it; that’s an SSD though,