Jacek Sieka 6f1ecc8df7
streamline socket read/write hot path (#473)
* streamline socket read/write hot path

This avoids some unnecessary memory copying on the hot path of noise /
mplex, as well as getting rid of a few futures - profiling shows that
this is one of the main culprits of small memory allocations, which
makes sense - this is where gossip fan-out happens.

* fewer futures (and corresponding closures) when sending lpchannel
messages
* avoid data copies when encrypting and framing noise messages
* avoid copying tuple when reading noise data (poor c codegen)
* fix setting eof flag in secure read

* write noise frames in one go

...and closing secure socket once is enough
2020-12-09 08:56:40 -06:00
..
2020-10-30 21:49:54 +09:00
2020-12-02 19:24:48 -06:00
2020-05-31 16:22:49 +02:00
2020-11-04 19:56:28 -06:00
2020-12-03 13:53:16 -06:00
2020-09-06 10:31:47 +02:00
2020-09-14 10:19:54 +02:00
2020-12-02 19:24:48 -06:00
2020-03-23 15:03:36 +09:00
2020-05-31 16:22:49 +02:00