actix-extras
actix-extras copied to clipboard
actix-ws: use BigBytes to avoid copying ws messages between various buffers
PR Type
Refactor
PR Checklist
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] A changelog entry has been made for the appropriate packages.
- [ ] Format code with the nightly rustfmt (
cargo +nightly fmt).
Overview
This tries out the BigBytes changes from https://github.com/actix/actix-web/pull/3368 in actix-ws, which enables websocket messages to be passed all the way through to the h1 IO resource without copying. This change primarily benefits applications that send large payloads