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

QNTM-5867 Search dictionary should only be recreated when necessary #9301

Merged
merged 6 commits into from
Dec 12, 2018

Conversation

scottmitchell
Copy link
Collaborator

@scottmitchell scottmitchell commented Dec 10, 2018

Purpose

This PR addresses jira task QNTM-5867: Search dictionary should only be recreated when necessary. It creates a TagDictionary property that is cached and only recreated when necessary. The tag dictionary used to be a local variable that was recreated with every single search.

This PR does:

  • Cache the tag dictionary and only recreates it when necessary
  • Roughly doubles the speed of the Search() method in SearchDictionary
master QNTM-5867
56.6 8.2 Average Search() time in ms
7.5 4 Median Search() time in ms

This PR does NOT:

  • Impact Dynamo instrumentation

Declarations

Check these if you believe they are true

  • The code base is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning, and are documented in the API Changes document.

Reviewers

@ColinDayOrg @mjkkirschner

FYIs

@scottmitchell scottmitchell changed the title [WIP] QNTM-5867 Search dictionary should only be recreated when necessary QNTM-5867 Search dictionary should only be recreated when necessary Dec 11, 2018
@ColinDayOrg
Copy link
Contributor

LGTM :shipit:

@mjkkirschner
Copy link
Member

LGTM

@scottmitchell scottmitchell merged commit 86bbd78 into DynamoDS:master Dec 12, 2018
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.

3 participants