From: "Ludovic Courtès" <ludo@gnu.org>
To: Guix-devel <guix-devel@gnu.org>
Subject: Re: Will 2021 be the year of build systems on gexps?
Date: Tue, 23 Feb 2021 15:28:36 +0100 [thread overview]
Message-ID: <87wnuy504r.fsf@gnu.org> (raw)
In-Reply-To: <87im6ojbbx.fsf@gnu.org> ("Ludovic Courtès"'s message of "Fri, 19 Feb 2021 17:01:38 +0100")
Hi!
Ludovic Courtès <ludo@gnu.org> skribis:
> I’ve made progress identifying and mitigating what seems to be the main
> cause of this (the fact that it’s possible to ungexp a list and that
> list will be scanned in its entirety in search of file-like
> objects—convenient but expensive) but as you can see, there’s still a
> lot to do.
I cherry-picked to ‘master’ the gexp optimizations I made on
‘wip-build-systems-gexp’. The good news is that it pays off on system
compilations, going from (commit 3c548c3e0eade12d3e86b1201dbd95863ca64ea7):
--8<---------------cut here---------------start------------->8---
$ GUIX_PROFILING="gc object-cache" ./pre-inst-env guix system build -d --no-grafts gnu/system/examples/desktop.tmpl
/gnu/store/g6kd2blajq6yja80516m85zv07d4ysb3-system.drv
Store object cache:
fresh caches: 2
lookups: 119282
hits: 116225 (97.4%)
Garbage collection statistics:
heap size: 119.43 MiB
allocated: 649.07 MiB
GC times: 26
time spent in GC: 2.15 seconds (37% of user time)
--8<---------------cut here---------------end--------------->8---
to (commit 0a912b3a434c9ff9515f9036feae4d3a7075fb2f):
--8<---------------cut here---------------start------------->8---
$ GUIX_PROFILING="gc object-cache" ./pre-inst-env guix system build -d --no-grafts gnu/system/examples/desktop.tmpl
/gnu/store/f63c8rk8rwrfr5cl4s74hnx25l3z1hrp-system.drv
Store object cache:
fresh caches: 2
lookups: 119285
hits: 116227 (97.4%)
cache size: 3058 entries
Garbage collection statistics:
heap size: 111.43 MiB
allocated: 608.01 MiB
GC times: 25
time spent in GC: 2.00 seconds (37% of user time)
--8<---------------cut here---------------end--------------->8---
Reduced heap allocations (-6%), reduce heap size (-7%), and reduced run
time (ditto). Getting better!
Ludo’.
next prev parent reply other threads:[~2021-02-23 14:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-19 16:01 Will 2021 be the year of build systems on gexps? Ludovic Courtès
2021-02-23 10:31 ` Rust packages and performance impact on Guix Ludovic Courtès
2021-02-23 14:28 ` Ludovic Courtès [this message]
2021-03-10 11:09 ` Will 2021 be the year of build systems on gexps? Ludovic Courtès
2021-03-10 11:15 ` Julien Lepiller
2021-03-10 14:12 ` zimoun
2021-03-10 17:00 ` Leo Famulari
2021-03-23 13:38 ` Ludovic Courtès
2021-03-23 16:08 ` Ricardo Wurmus
2021-03-30 2:16 ` Maxim Cournoyer
2021-03-30 21:38 ` Ludovic Courtès
2021-03-30 22:32 ` Timothy Sample
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wnuy504r.fsf@gnu.org \
--to=ludo@gnu.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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).