bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Faster!


From: Ludovic Courtès
Subject: Re: Faster!
Date: Mon, 04 Feb 2013 22:37:14 +0100
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)

Nikita Karetnikov <address@hidden> 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’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]