From: ludo@gnu.org (Ludovic Courtès)
To: Nikita Karetnikov <nikita@karetnikov.org>
Cc: bug-guix@gnu.org
Subject: Re: Faster!
Date: Mon, 04 Feb 2013 22:37:14 +0100 [thread overview]
Message-ID: <871ucvu5f9.fsf@gnu.org> (raw)
In-Reply-To: <87fw1byjti.fsf@karetnikov.org> (Nikita Karetnikov's message of "Mon, 04 Feb 2013 14:12:25 -0500")
Nikita Karetnikov <nikita@karetnikov.org> skribis:
> While we are at it, will it be better to rewrite 'fold-packages' and
> similar things (like 'search') using streams?
Good question.
[...]
> 'time' shows that the above is a bit slower than the current version.
> Will it be faster when we have more packages? What about memory?
It will necessarily use slightly more memory.
Performance depends on our use cases. Currently, all our use cases
(finding packages by name or by description, listing them, etc.)
traverse the whole list. Thus, it would not buy us anything to use
streams here.
Perhaps we can revisit that if/when we have an application where it
would help, but that doesn’t come to mind here.
WDYT?
Ludo’.
next prev parent reply other threads:[~2013-02-04 21:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-29 23:15 Faster! Ludovic Courtès
2013-01-30 20:47 ` Faster! Andreas Enge
2013-01-30 21:04 ` Faster! Ludovic Courtès
2013-01-30 21:17 ` Faster! Andreas Enge
2013-01-30 22:04 ` Faster! Ludovic Courtès
2013-01-30 22:09 ` Faster! Andreas Enge
2013-01-30 22:51 ` Faster! Ludovic Courtès
2013-01-31 22:22 ` Faster! Ludovic Courtès
2013-02-04 19:12 ` Faster! Nikita Karetnikov
2013-02-04 21:37 ` Ludovic Courtès [this message]
2013-03-16 16:43 ` Faster! Ludovic Courtès
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=871ucvu5f9.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=bug-guix@gnu.org \
--cc=nikita@karetnikov.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.