-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
Description
Handling chunks requires appending Buffer(s) in the body stored at HttpEventHandler.
See
| body.appendBuffer(chunk); |
This can both create excessive heap footprint and performing useless copies.
It would be ideal if we could retain the chunks accumulating them in some list or queue and eventually allocating a single buffer to copy or transferring them to a composite buffer (without copying anything).
I have used a similar strategy in https://github.com/quarkusio/quarkus/blob/b870c90569a4c88467313587565205818034f4df/independent-projects/vertx-utils/src/main/java/io/quarkus/vertx/utils/AppendBuffer.java#L19
geoand