Files
swift-nio/Sources
Norman Maurer 1a9cd14118 More agressively try to increase the number of bytes we read from the Channel per read.
Motiviation:

We used to only allocate one buffer per read loop (by default we use multiple reads per loop) and record for the next loop iteration if we need to allocate a bigger buffer or not. This can lead to very slowely ramping up of number of bytes we read. We should better detect if we should allocate a new buffer because we used all the writable bytes to allow faster ramping up of numbre of bytes to read .

Modification:

- Change RecvByteBufferAllocator.record to return a Bool that wil lsignal if we used all the writable bytes of the last allocation and so may want to try to allocate a bigger buffer again
- Adjust tests.

Result:

Faster adjustment of the ByteBuffer capacity when reading data.
2017-12-04 15:43:13 +01:00
..
2017-11-21 18:32:33 +00:00
2017-11-16 15:20:13 +01:00
2017-11-16 15:20:13 +01:00
2017-11-13 12:45:57 +00:00
2017-11-30 16:07:41 +00:00
2017-11-28 16:13:26 +00:00
2017-11-30 12:39:06 +00:00