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