From: ludo@gnu.org (Ludovic Courtès)
To: Federico Beffa <beffa@ieee.org>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH 4/4] gnu: matplotlib: Add gtk3 backends.
Date: Tue, 23 Dec 2014 19:22:50 +0100 [thread overview]
Message-ID: <87fvc6jked.fsf@gnu.org> (raw)
In-Reply-To: <CAKrPhPO67TnVO3j4jTZHtk=M+ibLy5EYpEHj8_2MPhpR+SDyQw@mail.gmail.com> (Federico Beffa's message of "Tue, 23 Dec 2014 18:09:30 +0100")
Federico Beffa <beffa@ieee.org> skribis:
> The build does finish as I've tested it on my machine before
> committing the package. However, for some reason, guix needs very long
> to generate the derivation. On my machine (quad-core Xeon E5520)
> python2-matplotlib takes ca. 31 mins to start building.
> Python2-scipy, which includes python2-matplotlib, takes ca. 80 mins.!
Eric Bavier <ericbavier@gmail.com> skribis:
> I wonder if this could this be a result of package-with-python2's
> behavior of recursively creating new package objects for each input in a
> package. As Ludovic suggested, this could easily create very large DAGs
> that then need to be processed.
>
> This behavior of package-with-python2 was giving me a nightmare when
> trying to code some improvements to `guix refresh -l`, since there would
> easily become tens or hundreds of logically identical python package
> objects floating through the package dependency DAG.
Ouch, thanks for putting me on the right track. Basically
‘package-with-explicit-python’ was recursing way too much, leading to
hundreds of unique package objects, and thus defeating memoization of
‘package-derivation’.
Commit 78a2745 fixes that. ‘guix build python2-matplotlib -n
--no-substitutes’ takes ~5 seconds on my laptop (which is still too much
IMO, but that’s another story.) I’ve thus reinstated numpy, scipy, etc.
In the future, don’t hesitate to report a bug when computing a
derivation takes more than a few seconds.
Eric: the good news is that you can now resume work on ‘guix refresh
-l’. ;-)
Ludo’.
next prev parent reply other threads:[~2014-12-23 18:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-14 19:52 [PATCH 4/4] gnu: matplotlib: Add gtk3 backends Federico Beffa
2014-12-15 22:37 ` Ludovic Courtès
2014-12-17 19:25 ` Federico Beffa
2014-12-17 20:34 ` Ludovic Courtès
2014-12-18 17:09 ` Federico Beffa
2014-12-23 0:17 ` Ludovic Courtès
2014-12-23 17:09 ` Federico Beffa
2014-12-23 17:43 ` Eric Bavier
2014-12-23 18:22 ` Ludovic Courtès [this message]
2014-12-23 19:27 ` Eric Bavier
2014-12-24 15:34 ` Mark H Weaver
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fvc6jked.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=beffa@ieee.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.