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

common/hreflect: Replace the map/RWMutex method cache with sync.Map #13529

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

bep
Copy link
Member

@bep bep commented Mar 26, 2025

It's much faster when running in parallel:

GetMethodByName-10        125.1n ± 6%   181.7n ± 7%  +45.30% (p=0.002 n=6)
GetMethodByNamePara-10   770.10n ± 1%   24.77n ± 9%  -96.78% (p=0.002 n=6)

@bep bep force-pushed the perf/getmethodindex branch from 1a7a0db to 2f7ce77 Compare March 26, 2025 10:45
It's much faster when running in parallel:

```
GetMethodByName-10        125.1n ± 6%   181.7n ± 7%  +45.30% (p=0.002 n=6)
GetMethodByNamePara-10   770.10n ± 1%   24.77n ± 9%  -96.78% (p=0.002 n=6)
```
@bep bep force-pushed the perf/getmethodindex branch from 2f7ce77 to 9bf3a9b Compare March 26, 2025 12:50
@bep bep merged commit 8d2379b into gohugoio:master Mar 26, 2025
6 checks passed
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