darklang / dark

Darklang main repo, including language, backend, and infra
https://darklang.com
Other
1.65k stars 90 forks source link

wip: cache cli pm on disk #5390

Open StachuDotNet opened 2 months ago

StachuDotNet commented 2 months ago

This makes running dark help, or anything else, much faster after the first run - no HTTP needed as relevant package stuff is cached on-disk after the first run.

This solution is incomplete -- needs work especially to deal with reasonable cache-invalidation.

I thought I'd jump straight to using sqlite for caching here, but #5389 that turned out to be more MB than I expected, so considering options