fa2b78d67e
benchmarks pre-commit: go test ./pkg/escape/... -bench=. -benchmem BenchmarkStringEscapeNoEscapes-8 10000000 122 ns/op 0 B/op 0 allocs/op BenchmarkStringUnescapeNoEscapes-8 300000000 5.69 ns/op 0 B/op 0 allocs/op BenchmarkManyStringEscape-8 1000000 1073 ns/op 320 B/op 8 allocs/op BenchmarkManyStringUnescape-8 1000000 1557 ns/op 288 B/op 8 allocs/op PASS ok github.com/influxdata/influxdb/pkg/escape 6.304s benchmarks post-commit: go test ./pkg/escape/... -bench=. -benchmem BenchmarkStringEscapeNoEscapes-8 100000000 17.5 ns/op 0 B/op 0 allocs/op BenchmarkStringUnescapeNoEscapes-8 300000000 5.70 ns/op 0 B/op 0 allocs/op BenchmarkManyStringEscape-8 3000000 451 ns/op 224 B/op 6 allocs/op BenchmarkManyStringUnescape-8 2000000 944 ns/op 304 B/op 9 allocs/op PASS ok github.com/influxdata/influxdb/pkg/escape 8.727s |
||
---|---|---|
.. | ||
deep | ||
escape | ||
limiter | ||
pool | ||
slices | ||
README.md |
README.md
pkg/ is a collection of utility packages used by the InfluxDB project without being specific to its internals.
Utility packages are kept separate from the InfluxDB core codebase to keep it as small and concise as possible. If some utilities grow larger and their APIs stabilize, they may be moved to their own repository under the InfluxDB organization, to facilitate re-use by other projects. However that is not the priority.
Because utility packages are small and neatly separated from the rest of the codebase, they are a good place to start for aspiring maintainers and contributors. Get in touch if you want to help maintain them!