solc-select
solc-select copied to clipboard
cache `get_installable_versions` and `get_available_versions`
There's no need to repeatedly invoke these requests since once the platform is determined, these should not change
Would love to help to implement this improvement.
@0xalpharush could you please suggest some examples of how caching might be done here? If you have anything on mind :)
I believe we couldn't cache get_installable_versions() since installed_versions() will be changing.
What do you think?
I think we should probably create a class so that there's a way to persist data and update installed_versions. For now, caching get_available_versions is fine as this one involves network requests which we want to reduce