3 ms·
What is idiomatic in Java? Netty does little-to-no allocations. One can implement very thin layer on top of Netty to provide API similar to Go standard HTTP ser
by vbezhenar 6y ago
What is idiomatic in Java? Netty does little-to-no allocations. One can implement very thin layer on top of Netty to provide API similar to Go standard HTTP server.
- tomlu 6y agoYou have to work extra hard and give up language niceties to reduce allocations, more so than certain other languages that are more value oriented. You want an List<T> of objects? It's now a list of pointers to individual allocations. You want a Path class instead of just passing strings around, for type safety? One extra allocation per object.