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 tile source locking. #671

Merged
merged 1 commit into from
Oct 29, 2021
Merged

Improve tile source locking. #671

merged 1 commit into from
Oct 29, 2021

Conversation

manthey
Copy link
Member

@manthey manthey commented Oct 28, 2021

Before, if two different tile sources using the same cache were being opened simultaneously, they would be opened sequentially due to the locking semantics. This also prevented opening the same source twice.

Now, when a tile source is not in cache, a separate per-key lock is created for opening that source. This prevents the same source from being opened twice but allows different sources to be opened concurrently.

Before, if two different tile sources using the same cache were being
opened simultaneously, they would be opened sequentially due to the
locking semantics.  This also prevented opening the same source twice.

Now, when a tile source is not in cache, a separate per-key lock is
created for opening that source.  This prevents the same source from
being opened twice but allows different sources to be opened
concurrently.
@manthey manthey force-pushed the better-source-locking branch from 7d6370e to 18576d9 Compare October 28, 2021 20:57
@manthey manthey merged commit 9eb83fc into master Oct 29, 2021
@manthey manthey deleted the better-source-locking branch October 29, 2021 12:05
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