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

Cache results from PackageManager #1288

Merged
merged 3 commits into from
Jun 24, 2021
Merged

Cache results from PackageManager #1288

merged 3 commits into from
Jun 24, 2021

Conversation

fractalwrench
Copy link
Contributor

@fractalwrench fractalwrench commented Jun 23, 2021

Goal

AppDataCollector and Configuration both get the PackageInfo and ApplicationInfo from the PackageManager. This takes ~3.5ms on a OnePlus Pro 7 so the result should be cached to speed up initialization.

Testing

Relied on existing test coverage.

@fractalwrench fractalwrench marked this pull request as ready for review June 23, 2021 16:26
Copy link
Contributor

@lemnik lemnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending resolution of suggestions

@fractalwrench fractalwrench merged commit 909d37e into next Jun 24, 2021
@fractalwrench fractalwrench deleted the cache-packagemanager branch June 24, 2021 10:55
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