IntersectMBO / IntersectMBO/ouroboros-network
Copy instead of append small messages into mux segments
Open
mux
optimisation
- Dominant language
- Haskell
- Stars
- 296
- Forks
- 104
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 4
Description
An idea from the investigation into https://github.com/input-output-hk/cardano-node/issues/488 .
On the egress side I experimented with copying small messages into the existing mux sdu, similar to what ByteString builder does but with a smaller limit for where copy instead of appending chunks are acceptable. I couldn’t measure any noticeable performance improvement, but it is probably worth revisiting in the future.
The chainsync SDUs are about 600 bytes split into 300 two byte chunks, which can’t be good.
Contributor guide
Assessment
This issue has not been assessed yet.