Paper
Paper copied to clipboard
Use a proper thread pool in ServerLoginPacketListenerImpl and MCUtil
Fixes #8797
An arbitrary-ish number of 1024 was chosen for the bounded queue size. The asyncExecutor in MCUtil was left unbounded.
- You mangled the formatting
- core size of 16 is excessive, especially as the thread pool will race towards that needlessly; I'd probably just go for like 4 or something, and maybe make it configurable; ofc, this is actually probably a pretty good target for green threads in the future
Are you still planning on moving forward with this ? I don't recall the dhrama discussion about it but I'd close this otherwise.
Closing this given it has gone rather stale :sweat: (love you egg <3)