More efficient Registry module lookups #958
Labels
enhancement
New feature or request
modules
Functionality related to the module block and modules generally
upstream/tf-registry
Background
#924 provides a way for us to do completion, hover etc. for any Registry-hosted modules without user having to install them, greatly improving the "out of the box" UX. This is achieved by gathering the module data from the Registry API for any parsed modules within any module which is open by the user.
For example
So this currently involves two API calls, both of which may potentially involve significant amount of data. We don't save more data than we need for the completion and hover, but all of it still needs to be downloaded from the API and decoded, resulting in potentially suboptimal memory/CPU/network-bandwidth consumption and poor UX for modules with many versions.
Proposal
The text was updated successfully, but these errors were encountered: