all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Pierre Neidhardt <mail@ambrevar.xyz>, Lars-Dominik Braun <lars@6xq.net>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>, pkill9 <pkill9@runbox.com>
Subject: Re: guix environment --profile with --ad-hoc
Date: Fri, 12 Mar 2021 10:47:04 +0100	[thread overview]
Message-ID: <86v99wiu07.fsf@gmail.com> (raw)
In-Reply-To: <87ft114fup.fsf@ambrevar.xyz>

Hi Pierre,

On Thu, 11 Mar 2021 at 21:04, Pierre Neidhardt <mail@ambrevar.xyz> wrote:

> My only complaint is that it's still a bit slow:
>
> --8<---------------cut here---------------start------------->8---
> time guix environment -C --profile=/my/profile -- exit
>
> real	0m2.372s
> --8<---------------cut here---------------end--------------->8---
>
> Same without `-C`.
>
> In comparison,
>
> --8<---------------cut here---------------start------------->8---
> time env -i $(which bash) --norc --noprofile -c 'source nyxt/etc/profile && exit'
>
>
> real	0m0.004s
> --8<---------------cut here---------------end--------------->8---

You are not comparing apple to apple. :-)


> Is there anything we can do to speed this up?

We already had this discussion. :-)

See the thread: <https://yhetil.org/guix/87o8j35ncu.fsf@ambrevar.xyz>

Compared to the previous discussion, the --profile is a good improvement
since it by-passes the computations of derivations and profiles and the
time of the container part still is less than 0.2s on my machine, which
is acceptable, as you are saying. :-)


Therefore, IIUC, your question is: how to speed up the call of Guix
commands?  Right?

For instance, cold cache:

--8<---------------cut here---------------start------------->8---
$ sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'
$ time guix environment --help >/dev/null

real	0m1.730s
user	0m0.845s
sys	0m0.198s
--8<---------------cut here---------------end--------------->8---


BTW, what about “guix run” which is faster, right?


Cheers,
simon


  reply	other threads:[~2021-03-12  9:48 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-09  2:05 guix environment --profile with --ad-hoc pkill9
2021-03-09  7:25 ` Lars-Dominik Braun
2021-03-09  8:20   ` Pierre Neidhardt
2021-03-09  8:28     ` Lars-Dominik Braun
2021-03-11 20:04       ` Pierre Neidhardt
2021-03-12  9:47         ` zimoun [this message]
2021-03-12  9:59           ` Pierre Neidhardt
2021-03-12 11:23             ` Ricardo Wurmus
2021-03-12 11:26               ` Pierre Neidhardt
2021-03-12 13:12               ` zimoun
2021-03-15 16:23               ` Ludovic Courtès
2021-03-12 10:42         ` Lars-Dominik Braun
2021-03-12 10:51           ` Pierre Neidhardt
2021-03-12 15:44       ` Pierre Neidhardt
2021-03-13  7:59         ` Lars-Dominik Braun
2021-03-13  8:55           ` Pierre Neidhardt
2021-03-15  9:25           ` zimoun
2021-03-10 10:04   ` pkill9

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=86v99wiu07.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=lars@6xq.net \
    --cc=mail@ambrevar.xyz \
    --cc=pkill9@runbox.com \
    /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.