by MrBuddyCasino · 10y ago · 0 comments
*The low-level HTTP API provides access to the extremely fast Rapidoid HTTP
server implemented from scratch on top of Java NIO.*
Thats quite an achievement, considering that Netty is very well optimized. Maybe the off-heap output buffer gives it that edge?The performance optimization is based on: - using off-heap input and output buffers, - minimizing the number of objects that are created when parsing the input and generating the output, - using object pools to reuse the objects that must be created, - using thread-local helper data structures on the I/O threads to avoid synchronization and object instantiation.
Is this because it allows the GC to be avoided, or because it allows value types to be emulated?
Lots of people have done so, if you have the skills and determination. It also helps if you focus on that, instead of completeness, like Netty probably does.
(Netty is well-optimized, but quite bloated as well).