Using new CPU features to increase performance
Open
type/enhancement
type/performance
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Enhancement
- `GOAMD64=v3` avx2, etc
- `GOARM64=v8.2,lse,crypto` for large system extensions (lse), and hardware crypto for TLS etc
This should still be compatible with AWS Graviton2
#### Reference
- https://go.dev/wiki/MinimumRequirements#amd64
- https://go.dev/wiki/MinimumRequirements#arm64
- https://en.wikipedia.org/wiki/AWS_Graviton#Graviton2
- https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels
To see what your CPU supports:
```
$ /usr/bin/ld.so --help | grep -E 'x86-64-v'
x86-64-v4
x86-64-v3 (supported, searched)
x86-64-v2 (supported, searched)
$ uname -sr
Linux 6.13.5-200.fc41.x86_64
```
Contributor guide
Assessment
This issue has not been assessed yet.