I want to avoid spending a lot of CPU resources on waking up netty's thread. Every time the packet is flushed, the netty is wakened up. When I have a lot of packet sending I have a lot of these wake-ups, which is really hard for the CPU to process. How to make it spend less time on waking up, I found something like SelectStrategy.BUSY_WAIT, but as soon as I pick this option, my CPU is at 20% at all times. Is there a way to do something like delayed sleep/awaiting for wakeup?
I also tried to merge EventLoops of channels, but it seems that every channel has its own EventLoop.