prometheus/tsdb
Bryan Boreham 3330d85ba8
Replace sort.Strings and sort.Ints with faster slices.Sort (#11318)
Use new experimental package `golang.org/x/exp/slices`.

slices.Sort works on values that are directly comparable, like ints,
so avoids the overhad of an interface call to `.Less()`.

Left tests unchanged, because they don't need the speed and it may be
a cross-check that slices.Sort gives the same answer.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2022-09-30 20:03:56 +05:30
..
agent
chunkenc
chunks
docs
encoding
errors
fileutil
goversion
index Replace sort.Strings and sort.Ints with faster slices.Sort (#11318) 2022-09-30 20:03:56 +05:30
record
test
testdata
tombstones
tsdbutil
wal
.gitignore
block.go
block_test.go
blockwriter.go
blockwriter_test.go
CHANGELOG.md
compact.go
compact_test.go
db.go
db_test.go
example_test.go
exemplar.go
exemplar_test.go
head.go
head_append.go
head_bench_test.go
head_read.go
head_read_test.go
head_test.go
head_wal.go
isolation.go
isolation_test.go
mocks_test.go
ooo_head.go
ooo_head_read.go
ooo_head_read_test.go
ooo_head_test.go
querier.go
querier_bench_test.go
querier_test.go
README.md
repair.go
repair_test.go
tsdbblockutil.go
wal.go
wal_test.go

TSDB

GoPkg

This directory contains the Prometheus TSDB (Time Series DataBase) library, which handles storage and querying of all Prometheus v2 data.

Documentation

External resources

A series of blog posts explaining different components of TSDB: