Bryan Boreham dea37853d9
tsdb: use dennwc/varint to speed up WAL decoding (#9106)
* tsdb: use dennwc/varint to speed up decoding

This is a tiny library, MIT-licensed, which unrolls the loop to go
about twice as fast.

Needed to copy the sign-inverting logic inline, previously provided by
the `binary` package.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

* More comments to explain varint decoding

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2021-07-27 10:02:57 +05:30
..
2020-07-21 10:08:06 +02:00
2021-06-11 12:28:36 -04:00
2021-06-11 12:28:36 -04:00
2021-07-20 18:08:08 +05:30
2021-06-11 12:28:36 -04:00
2021-06-11 12:28:36 -04:00
2021-02-22 20:28:02 +01:00
2021-06-11 12:28:36 -04:00
2021-06-11 12:28:36 -04:00
2021-07-20 10:22:57 +05:30
2021-07-20 10:22:57 +05:30
2021-07-20 18:08:08 +05:30
2021-06-17 07:18:51 -04:00
2021-06-11 12:28:36 -04:00
2021-06-11 12:28:36 -04:00
2021-06-11 12:28:36 -04:00
2021-06-11 12:28:36 -04:00

TSDB

GoPkg

This directory contains the Prometheus storage layer that is used in its 2.x releases.

A writeup of its design can be found here.

Based on the Gorilla TSDB white papers.

Video: Storing 16 Bytes at Scale from PromCon 2017.

See also the format documentation.

A series of blog posts explaining different components of TSDB: