Francesco Nigro
Francesco Nigro
FYI https://github.com/casid/template-benchmark/pull/3 Do you want me to send a PR here as well? The difference should be relevant enough (to start with)
https://github.com/rmh78/quarkus-performance/blob/master/demo-quarkus/src/main/java/de/harald/test/demo/WelcomeResource.java should use a NonBlocking annotation in the endpoint because the computed return value is not "async" and the Quarkus ergonomic will handoff it to a blocking thread pool (and...
I still have to verify it through a test: I'm not very convinced about the fix - I would expect instead that resetting a request would remove it from the...
Websocket txt messages perform an additional byte[] copy, because: 1. `Buffer::buffer(String)` is performing `String::getBytes` -> first byte[] allocation 2. It than allocates `VertxByteBufAllocator.DEFAULT.heapBuffer` to write the copy in -> second...
Vertx is using a nested series of synchronized over the connection field which costs keep on piling-up; this cost is particularly evident while executing writeFrame outside of I/O threads. https://github.com/franz1981/java-puzzles/blob/583d468a58a6ecaa5e7c7c300895392638f688dd/src/main/java/red/hat/puzzles/concurrent/LockCoarsening.java#L76-L85...
SSL JDK is very memory allocation intensive, see https://github.com/netty/netty/issues/14208: by default Vertx is using unpooled heap buffers of 16 KB for each interaction with SSL/TSL, which can lead to increase...
Fixes #5168 This is part of https://github.com/eclipse-vertx/vert.x/pull/5262 non-SSL connections configure `PooledByteBufAllocator.DEFAULT` as per https://github.com/eclipse-vertx/vert.x/blob/f42b5d22c5c738cae1db925a06029212b198c398/vertx-core/src/main/java/io/vertx/core/net/impl/NetServerImpl.java#L515-L519 In this scenario, hitting these call sites: https://github.com/eclipse-vertx/vert.x/blob/65403248e1e5c679d5418d8040aafea5bd09d0ef/src/main/java/io/vertx/core/net/impl/VertxHandler.java#L61 https://github.com/eclipse-vertx/vert.x/blob/f42b5d22c5c738cae1db925a06029212b198c398/vertx-core/src/main/java/io/vertx/core/http/impl/Http2ConnectionBase.java#L59 or https://github.com/eclipse-vertx/vert.x/blob/f42b5d22c5c738cae1db925a06029212b198c398/vertx-core/src/main/java/io/vertx/core/buffer/impl/BufferImpl.java#L49-L54 referencing `VertxByteBufAllocator.DEFAULT` , it triggers...
I've fallen into this while working on improving allocations for Quarkus: - quarkus register several routes - some of these routes, while iterated to find a match, hit https://github.com/vert-x3/vertx-web/blob/ed413097ca51eedc18db827c92f1514565e9b9b0/vertx-web/src/main/java/io/vertx/ext/web/impl/RouteState.java#L1225-L1230 -...