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

Optimize loading pattern list #772

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Optimize loading pattern list #772

merged 1 commit into from
Sep 26, 2023

Conversation

lslezak
Copy link
Contributor

@lslezak lslezak commented Sep 26, 2023

Problem

  • Loading the list of available patterns takes too long time, about 10 seconds
  • It turned out that for loading the patterns libzypp is called almost 700x in a Tumbleweed installation!

Solution

  • Use the attribute preloading in to reduce the number of needed libzypp calls to just a single call

Testing

  • Tested manually, now the list of patterns is obtained in a fraction of a second, there is just a single libzypp call

Reduce the number of needed libzypp calls to just a single call
@lslezak lslezak merged commit 392e7d5 into master Sep 26, 2023
14 checks passed
@lslezak lslezak deleted the optimize_pattern_loading branch September 26, 2023 13:08
@imobachgs imobachgs mentioned this pull request Sep 26, 2023
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.

2 participants