netty5/transport-native-unix-common
Norman Maurer f6474e66de
Use multiple IovArray for writev when using io_uring based transport (#10549)
Motivation:

How we did manage the memory of writev was quite wasteful and could
produce a lot of memory overhead. We can just keep it simple by using
an array of IovArrays. Once these are full we can just submit and clear these as at this
point the kernel did take over a copy and its safe to reuse

Modifications:

Use an array of IovArrays and submit once it is full.

Result:

Less memory overhead and less code duplication
2020-09-08 21:23:38 +02:00
..
2017-05-03 09:53:22 -07:00