1
0
Fork 0
hugo/common/hreflect
Bjørn Erik Pedersen 8d2379bcb3 common/hreflect: Replace the map/RWMutex method cache with sync.Map
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)
```
2025-03-26 14:24:51 +01:00
..
helpers.go common/hreflect: Replace the map/RWMutex method cache with sync.Map 2025-03-26 14:24:51 +01:00
helpers_test.go common/hreflect: Replace the map/RWMutex method cache with sync.Map 2025-03-26 14:24:51 +01:00