Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Make get_state_groups_from_groups faster. #2230

Merged
merged 1 commit into from
May 17, 2017

Conversation

erikjohnston
Copy link
Member

Most of the time was spent copying a dict to filter out sentinel values
that indicated that keys did not exist in the dict. The sentinel values
were added to ensure that we cached the non-existence of keys.

By updating DictionaryCache to keep track of which keys were known to
not exist itself we can remove a dictionary copy.

Most of the time was spent copying a dict to filter out sentinel values
that indicated that keys did not exist in the dict. The sentinel values
were added to ensure that we cached the non-existence of keys.

By updating DictionaryCache to keep track of which keys were known to
not exist itself we can remove a dictionary copy.
@erikjohnston erikjohnston force-pushed the erikj/speed_up_get_state branch from 5ed4910 to bbfe4e9 Compare May 17, 2017 14:12
@erikjohnston erikjohnston added maintenance A-Performance Performance, both client-facing and admin-facing labels May 17, 2017
Copy link
Contributor

@NegativeMjark NegativeMjark left a comment

Choose a reason for hiding this comment

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

LGTM

@erikjohnston erikjohnston merged commit d9e3a4b into develop May 17, 2017
@erikjohnston erikjohnston deleted the erikj/speed_up_get_state branch October 26, 2017 11:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Performance Performance, both client-facing and admin-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants