mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-08 04:59:31 -06:00
[performance] update go-structr and go-mutexes with memory usage improvements (#2909)
* update go-structr and go-mutexes with memory usage improvements * bump to go-structr v0.8.4
This commit is contained in:
parent
578a4e0cf5
commit
c06e6fb656
26 changed files with 1409 additions and 163 deletions
19
vendor/github.com/dolthub/swiss/simd/match.s
generated
vendored
Normal file
19
vendor/github.com/dolthub/swiss/simd/match.s
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// Code generated by command: go run asm.go -out match.s -stubs match_amd64.go. DO NOT EDIT.
|
||||
|
||||
//go:build amd64
|
||||
|
||||
#include "textflag.h"
|
||||
|
||||
// func MatchMetadata(metadata *[16]int8, hash int8) uint16
|
||||
// Requires: SSE2, SSSE3
|
||||
TEXT ·MatchMetadata(SB), NOSPLIT, $0-18
|
||||
MOVQ metadata+0(FP), AX
|
||||
MOVBLSX hash+8(FP), CX
|
||||
MOVD CX, X0
|
||||
PXOR X1, X1
|
||||
PSHUFB X1, X0
|
||||
MOVOU (AX), X1
|
||||
PCMPEQB X1, X0
|
||||
PMOVMSKB X0, AX
|
||||
MOVW AX, ret+16(FP)
|
||||
RET
|
||||
9
vendor/github.com/dolthub/swiss/simd/match_amd64.go
generated
vendored
Normal file
9
vendor/github.com/dolthub/swiss/simd/match_amd64.go
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// Code generated by command: go run asm.go -out match.s -stubs match_amd64.go. DO NOT EDIT.
|
||||
|
||||
//go:build amd64
|
||||
|
||||
package simd
|
||||
|
||||
// MatchMetadata performs a 16-way probe of |metadata| using SSE instructions
|
||||
// nb: |metadata| must be an aligned pointer
|
||||
func MatchMetadata(metadata *[16]int8, hash int8) uint16
|
||||
Loading…
Add table
Add a link
Reference in a new issue