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

refactor: Switch to recursive lock #12

Merged
merged 4 commits into from
Mar 19, 2025
Merged

Conversation

adrien-coye
Copy link
Contributor

@adrien-coye adrien-coye commented Mar 19, 2025

Switching SimpleResolver to a recursive lock.
This fixes a rare bug in loadOrResolve(), reduce latency, and is now cleaner than an internal queue.

In my synthetic tests, this is 19% faster than 2.0.3

More details in the exploratory PR

@adrien-coye adrien-coye force-pushed the refactor/recursive-lock branch from 233fb27 to ba2c0d8 Compare March 19, 2025 06:49
Copy link
Contributor Author

@adrien-coye adrien-coye left a comment

Choose a reason for hiding this comment

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

Did some tests on Mail and Drive, it works fine, so I'm opening this PR.

@adrien-coye adrien-coye marked this pull request as ready for review March 19, 2025 09:59
@adrien-coye adrien-coye requested a review from a team as a code owner March 19, 2025 09:59
@adrien-coye adrien-coye added enhancement New feature or request bug Something isn't working labels Mar 19, 2025
Copy link
Member

@PhilippeWeidmann PhilippeWeidmann left a comment

Choose a reason for hiding this comment

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

Did some test on the mail app. No regressions 👍

@adrien-coye adrien-coye merged commit 86f3b77 into main Mar 19, 2025
14 checks passed
@adrien-coye adrien-coye deleted the refactor/recursive-lock branch March 19, 2025 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants