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

Improve storage lookup performance #7336

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anderseknert
Copy link
Member

Some code I had left from the weekend, where I looked into the cost of querying the store during eval, and if that could be improved. The code here is mostly benchmarks that I found useful for that purpose, but also includes a few optimizations of code that is on the hot path for these lookups and as such has a high impact — as the benchmarks demonstrate.

The small change in eval.go is the first use of the new feature of object.Map added some days ago, where a map function returning a nil key means skipping that key/value pair.

Some code I had left from the weekend, where I looked into
the cost of querying the store during eval, and if that could
be improved. The code here is mostly benchmarks that I found
useful for that purpose, but also includes a few optimizations
of code that is on the hot path for these lookups and as such
has a high impact — as the benchmarks demonstrate.

The small change in eval.go is the first use of the new feature
of object.Map added some days ago, where a map function returning
a nil key means skipping that key/value pair.

Signed-off-by: Anders Eknert <anders@styra.com>
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.

1 participant