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

fix: Improves inventory template lookup performance. #589

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

alexanderson1993
Copy link
Member

Description of Changes

  • Optimizes the lookup of inventory templates by caching the result and including helpful cache invalidation

Related Issue

Closes #582

How do you know the changes work correctly?

Ran some benchmarks. Before: 0.8244ms to look up. After: 0.0177ms. That's 2% the original time, almost 2 orders of magnitude faster.

@alexanderson1993 alexanderson1993 merged commit f32c70d into develop Mar 27, 2023
@alexanderson1993 alexanderson1993 deleted the inventory-lookup-performance branch March 27, 2023 22:25
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.

Optimization - getInventoryTemplates
1 participant