From: Csepp <raingloom@riseup.net>
To: guix-devel <guix-devel@gnu.org>
Subject: guile profiling / speeding up derivations on slow storage
Date: Thu, 01 Dec 2022 02:02:16 +0100 [thread overview]
Message-ID: <87fsdzoqqp.fsf@riseup.net> (raw)
I'd really like to speed up guix pull on my netbook and have been
thinking about ways to do so for a while.
First of all, I'm curious, how do other Guile developers profile code?
Could we add a profiling flag for the CLI similar to the existing
debugging flags?
On a related note, has anyone tried to write a causal profile for Guile,
or a similar Scheme implementation?
One thing that definitely needs improvements is memory usage. That
should speed things up a lot too, since it would result in less swapping
on machines like mine.
I would love to hear some tips on doing memory profiling on Guile from
someone who has done that. I also looked into porting the ideas from
Scalene to Guile, but haven't gotten far since I'm busy with uni and
other Guix projects.
I also thought about some possible ways of caching expensive
computations that are not built using the store. Since Guix is mostly
purely functional in practice, I wonder if we could take some notes from
languages like Yatima. Or just use a plain old database for some
operations that are currently done by Scheme.
I know some of this must have already been discussed, but it's pretty
hard to track it down, and I think the roadmap for performance
improvements really should be centralized somewhere.
next reply other threads:[~2022-12-01 1:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-01 1:02 Csepp [this message]
2022-12-09 18:25 ` guile profiling / speeding up derivations on slow storage zimoun
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=87fsdzoqqp.fsf@riseup.net \
--to=raingloom@riseup.net \
--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).