Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor go cleanup and some performance improvements #1730

Merged
merged 4 commits into from
Jan 6, 2025

Conversation

ajayk
Copy link
Contributor

@ajayk ajayk commented Jan 5, 2025

Some minor improvements on sha validations

sample benchmark code https://gist.github.com/ajayk/869fedfbcdb0a64444858c14de7c7a31

Results here

goos: darwin
goarch: arm64
pkg: a.com
cpu: Apple M2 Pro
BenchmarkMatchValidShaCharsDynamic-12                  1             57416 ns/op
BenchmarkMatchValidShaCharsPrecompiled-12              1             12833 ns/op
BenchmarkMatchValidShaCharsManual-12                   1               625.0 ns/op
PASS
ok      a.com   0.233s

@ajayk ajayk force-pushed the minor-cleanup branch 2 times, most recently from bc00f2c to b52ef50 Compare January 5, 2025 18:50
@ajayk ajayk changed the title minor go cleanup minor go cleanup and some performance improvements Jan 5, 2025
pkg/build/pipeline.go Outdated Show resolved Hide resolved
pkg/build/pipeline.go Outdated Show resolved Hide resolved
pkg/build/pipeline.go Show resolved Hide resolved
ajayk and others added 2 commits January 6, 2025 10:56
Co-authored-by: Jon Johnson <[email protected]>
Signed-off-by: Ajay Kemparaj <[email protected]>
Co-authored-by: Jon Johnson <[email protected]>
Signed-off-by: Ajay Kemparaj <[email protected]>
@ajayk ajayk enabled auto-merge January 6, 2025 22:41
@ajayk ajayk merged commit 8f5c037 into chainguard-dev:main Jan 6, 2025
36 checks passed
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.

2 participants