Skip to content

Conversation

@countradooku
Copy link

  • Replace write_vectored with single-buffer writes to avoid fragmentation
  • Optimize buffer allocation patterns for small/large frames
  • Improve masking performance with 64-bit operations and better alignment
  • Add fast-mode constructor with performance-optimized defaults
  • Reduce unnecessary buffering in read path for large payloads

Addresses feedback about performance parity with simpler WebSocket implementations. Eliminates the main performance bottlenecks: header/payload fragmentation, excessive buffering, and suboptimal memory access patterns.

- Replace write_vectored with single-buffer writes to avoid fragmentation
- Optimize buffer allocation patterns for small/large frames
- Improve masking performance with 64-bit operations and better alignment
- Add fast-mode constructor with performance-optimized defaults
- Reduce unnecessary buffering in read path for large payloads

Addresses feedback about performance parity with simpler WebSocket implementations.
Eliminates the main performance bottlenecks: header/payload fragmentation,
excessive buffering, and suboptimal memory access patterns.
@countradooku countradooku closed this by deleting the head repository Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant