cats-effect
cats-effect copied to clipboard
Optimize `EpollSystem` on Native
trafficstars
- Replace
@volatiles with loads/stores with precise memory orders - Replace
TrieMapwithConcurrentHashMap? - Replace
unistd.{write,read}with bindings not marked@blocking
I'm not sure what the performance characteristics of CHM are on native so it's hard to say if it's better or worse than TrieMap.
Speaking of which, we definitely need a benchmark harness for SN.
Yeah, me neither. Also if TrieMap is better for now, there's a lot of places in Cats Effect we rely on CHM that maybe we should use TrieMap on Native for now.