Skip to content

Conversation

@thaJeztah
Copy link
Member

Swapping the order of these checks, which I guess is the most minimal optimization possible

BenchmarkGetEnv-10    68764720    16.82  ns/op   0 B/op   0 allocs/op
BenchmarkMap-10      454135184     2.635 ns/op   0 B/op   0 allocs/op

@thaJeztah
Copy link
Member Author

Actually; looks like containerd has an epoch package that also provides parsing, which may address the TODO in this area.

@thaJeztah
Copy link
Member Author

opened #1908 as alternative

Swapping the order of these checks, which I guess is the most minimal
optimization possible

    BenchmarkGetEnv-10    68764720    16.82  ns/op   0 B/op   0 allocs/op
    BenchmarkMap-10      454135184     2.635 ns/op   0 B/op   0 allocs/op

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants