This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A seashell buried in the sand, meant only to hear the sea at night. | |
# see https://hub.docker.com/r/phuslu/alpine/ | |
FROM alpine:3.21 | |
RUN \ | |
apk update && \ | |
apk upgrade && \ | |
apk add --update --no-cache \ | |
bash \ | |
bind-tools \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package bench | |
import ( | |
"testing" | |
) | |
func BenchmarkParseDeletionTimestamp(b *testing.B) { | |
b.ReportAllocs() | |
for i := 0; i < b.N; i++ { | |
_, _ = ParseDeletionTimestamp(data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type CachingMap[K comparable, V any] struct { | |
// double buffering mechanism | |
index int64 | |
maps [2]map[K]V | |
// write queue | |
queue chan struct { | |
key K | |
value V | |
} |