coder/websocket

Use assembly for WebSocket frame masking

nhooyr opened this issue · 4 comments

Will be a fun exercise for me.

This is definitely excessive. Don't want to spend my time here or maintain this.

Hello, @nhooyr !
I have implemented simd masking with avx2&sse for amd64 and neon for arm64 which results in 4x performance improvement in amd64 and 2x erformance improvement in arm64. I can mail a PR if you're interested.

@wdvxdr1123 Please open a PR or feel free to mail me the commits. I'd be very interested! Though I can't promise I'll get to merging it soon.

Will get this in at some point after extensive automated testing against the safe version. #326

Thanks again @wdvxdr1123