scrive / pool

A high-performance striped resource pooling implementation for Haskell
Other
18 stars 11 forks source link

Use capability-local stripes regardless of configuration #19

Closed parsonsmatt closed 1 year ago

parsonsmatt commented 1 year ago

This PR uses the number of capabilities to determine how to select stripes, instead of the pool configuration.

This should reduce the amount of contention for the case where the number of stripes is less than the number of capabilities.

arybczak commented 1 year ago

Thanks, I committed a refined version of this in 894e195.

In particular you switched branches where hashing was used vs capability id.