I'm trying to understand why CompositeByteBuf, consolidates if the number of components in the compositebytebuf becomes more than 'maxNumComponents' while adding component ?
This consolidation involves copy operations . My questions are -
It does this because once you have a lot of buffers in a CompositeByteBuf
accessing things on a specific index can for example become very slow.
If this is a problem for you or not depends highly on the use-case.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.