actix-extras icon indicating copy to clipboard operation
actix-extras copied to clipboard

actix-ws: use BigBytes to avoid copying ws messages between various buffers

Open asonix opened this issue 1 year ago • 0 comments

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

asonix avatar Nov 04 '24 23:11 asonix