GNU bug report logs - #78194
`guix pull --list-generations' is extremely slow

Previous Next

Package: guix;

Reported by: Ian Eure <ian <at> retrospec.tv>

Date: Thu, 1 May 2025 15:36:02 UTC

Severity: normal

Done: Andreas Enge <andreas <at> enge.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 78194 in the body.
You can then email your comments to 78194 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#78194; Package guix. (Thu, 01 May 2025 15:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ian Eure <ian <at> retrospec.tv>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 01 May 2025 15:36:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: bug-guix <at> gnu.org
Subject: `guix pull --list-generations' is extremely slow
Date: Thu, 01 May 2025 08:35:21 -0700
I’ve been frustrated by this before, but decided to measure 
things:

`guix home list-generations' takes 3.535s to list 28 items.
`guix system list-generations' takes 1.406s to list 35 items.
`guix pull --list-generations' takes 232.599s to list 41 items.

Why is `guix pull --list-generations' >100x slower than `guix 
system list-generations'?

Thanks,

 -- Ian







Information forwarded to bug-guix <at> gnu.org:
bug#78194; Package guix. (Wed, 14 May 2025 17:05:02 GMT) Full text and rfc822 format available.

Message #8 received at 78194 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Ian Eure <ian <at> retrospec.tv>
Cc: 78194 <at> debbugs.gnu.org
Subject: Re: bug#78194: `guix pull --list-generations' is extremely slow
Date: Wed, 14 May 2025 18:33:35 +0200
Hi,

Ian Eure <ian <at> retrospec.tv> writes:

> I’ve been frustrated by this before, but decided to measure things:
>
> `guix home list-generations' takes 3.535s to list 28 items.
> `guix system list-generations' takes 1.406s to list 35 items.
> `guix pull --list-generations' takes 232.599s to list 41 items.
>
> Why is `guix pull --list-generations' >100x slower than `guix system
> list-generations'?

Because for each pair of generations, it shows the corresponding news
entries (as per ‘guix pull --news’), and that part is quite expensive
because it involves a Git log traversal.

I think we should (1) optimize the news code (that’s
‘channel-news-for-commit’), and (2) if that’s not enough consider
keeping it off by default in ‘guix pull --list-generations’.

Thoughts?

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#78194; Package guix. (Wed, 14 May 2025 21:52:03 GMT) Full text and rfc822 format available.

Message #11 received at 78194 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> chbouib.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 78194 <at> debbugs.gnu.org, Ian Eure <ian <at> retrospec.tv>
Subject: Re: bug#78194: `guix pull --list-generations' is extremely slow
Date: Wed, 14 May 2025 22:28:37 +0200
Ludovic Courtès <ludo <at> gnu.org> writes:

> Because for each pair of generations, it shows the corresponding news
> entries (as per ‘guix pull --news’), and that part is quite expensive
> because it involves a Git log traversal.
>
> I think we should (1) optimize the news code (that’s
> ‘channel-news-for-commit’), and (2) if that’s not enough consider
> keeping it off by default in ‘guix pull --list-generations’.

That turned out to be easier than I thought, see
<https://issues.guix.gnu.org/78432>, which makes it 10–20x faster.

Ludo’.




Reply sent to Andreas Enge <andreas <at> enge.fr>:
You have taken responsibility. (Sun, 15 Jun 2025 08:50:02 GMT) Full text and rfc822 format available.

Notification sent to Ian Eure <ian <at> retrospec.tv>:
bug acknowledged by developer. (Sun, 15 Jun 2025 08:50:02 GMT) Full text and rfc822 format available.

Message #16 received at 78194-done <at> debbugs.gnu.org (full text, mbox):

From: Andreas Enge <andreas <at> enge.fr>
To: 78194-done <at> debbugs.gnu.org
Subject: Close
Date: Sun, 15 Jun 2025 10:49:39 +0200
This has apparently been solved, see the last message; closing.

Andreas





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 13 Jul 2025 11:24:20 GMT) Full text and rfc822 format available.

This bug report was last modified 34 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.