Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Defer retrieval of system info and plugin data #169

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

kklimonda-cl
Copy link
Contributor

@kklimonda-cl kklimonda-cl commented Sep 16, 2024

Retrieving both SystemInfo and Plugins during Initialize() call slows down client setup, which can lead to large slow down for some operations (e.g. terraform provider tests run twice as long due to that).
This commit defers initialization of both to when data is accessed by calling new SystemInfo() and Plugins() methods. The old behavior can still be done when needed by explicitly calling RetrieveSystemInfo() and RetrievePlugins() after a call to Initialize().

Retrieving both SystemInfo and Plugins during Initialize() call slows down client
setup, which can lead to large slow down for some operations (e.g. terraform provider tests
run twice as long due to that). This commit defers initialization of both to when data is accesssed
by calling new SystemInfo() and Plugins() methods. The old behaviour can still be done when needed
by explicitly calling RetrieveSystemInfo() and RetrievePlugins() after a call to Initialize().
@kklimonda-cl kklimonda-cl changed the title feat: Defer retrieval of system info and plugin data to when they are accessed feat: Defer retrieval of system info and plugin data Sep 16, 2024
@kklimonda-cl kklimonda-cl linked an issue Sep 23, 2024 that may be closed by this pull request
assets/pango/client.go Outdated Show resolved Hide resolved
Co-authored-by: michalbil <[email protected]>
@kklimonda-cl kklimonda-cl merged commit 744f93d into main Oct 1, 2024
2 checks passed
@kklimonda-cl kklimonda-cl deleted the feat-deferred-retrieval branch October 1, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Defer fetching of extra information from the server
2 participants