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

Reduce duplicate computation of expensive cached values. #1100

Merged
merged 1 commit into from
Apr 10, 2023

Conversation

manthey
Copy link
Member

@manthey manthey commented Apr 7, 2023

Some item functions are cached, like histograms, tile frames, and thumbnails. These can be expensive. Before, if a client asked for an expensive function and a second client asked for the same function before the first completed, it would compute it twice. Now, the second call waits for the first to complete and then reads from the cache.

Some item functions are cached, like histograms, tile frames, and
thumbnails.  These can be expensive.  Before, if a client asked for an
expensive function and a second client asked for the same function
before the first completed, it would compute it twice.  Now, the second
call waits for the first to complete and then reads from the cache.
@manthey manthey merged commit 0a0bd4c into master Apr 10, 2023
@manthey manthey deleted the expensive-cache branch April 10, 2023 12:12
manthey added a commit that referenced this pull request Apr 10, 2023
manthey added a commit that referenced this pull request Apr 10, 2023
manthey added a commit that referenced this pull request Apr 10, 2023
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