Some thoughts on dub housekeeping tasks for future design work
Sebastiaan Koppe
mail at skoppe.eu
Sun Dec 11 21:53:14 UTC 2022
On Sunday, 11 December 2022 at 12:43:47 UTC, Rikki Cattermole
wrote:
> Hello again!
>
> [...]
>
> dub-registry:
As for the dub-registry i can only advice to avoid having it do
more things than it already does.
In fact, I can only suggest to make it considerably dumber.
Right now it partakes in dependency resolution by recursively
resolving transitive dependencies. This has considerable resource
requirements due to the reconstruction of relative big json
snippets.
This thrashes a lot of memory and puts unnecessary pressure on
the GC, resulting in high memory requirements for a relatively
simple registry.
The tradeoff is having the client make multiple requests,
however, they can be done semi-parallel and, without requiring
transformations, can be streamed straight out of the database.
More information about the Digitalmars-d
mailing list