Source File
mask_asm.go
Belonging Package
github.com/coder/websocket
//go:build amd64 || arm64package websocketfunc mask( []byte, uint32) uint32 {// TODO: Will enable in v1.9.0.return maskGo(, )/*if len(b) > 0 {return maskAsm(&b[0], len(b), key)}return key*/}// @nhooyr: I am not confident that the amd64 or the arm64 implementations of this// function are perfect. There are almost certainly missing optimizations or// opportunities for simplification. I'm confident there are no bugs though.// For example, the arm64 implementation doesn't align memory like the amd64.// Or the amd64 implementation could use AVX512 instead of just AVX2.// The AVX2 code I had to disable anyway as it wasn't performing as expected.// See https://github.com/nhooyr/websocket/pull/326#issuecomment-1771138049////go:noescape//lint:ignore U1000 disabled till v1.9.0func maskAsm( *byte, int, uint32) uint32
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |