Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/vendor/github.com/bboreham/go-loser
Paulin Todev d54e0871d4
chore(deps): Update Prometheus in Loki and Promtail (#12245)
2 years ago
..
.gitignore chore(deps): Update Prometheus in Loki and Promtail (#12245) 2 years ago
LICENSE chore(deps): Update Prometheus in Loki and Promtail (#12245) 2 years ago
README.md chore(deps): Update Prometheus in Loki and Promtail (#12245) 2 years ago
tree.go chore(deps): Update Prometheus in Loki and Promtail (#12245) 2 years ago

README.md

go-loser

Loser Tree data structure, for fast k-way merge

I will be speaking about this at GopherCon on 27th Sept 2023.

There are currently two versions of the code on two Git branches: main, which works for built-in types like int and string, and any which works on any type but requires you to pass in a function pointer to do less comparisons.

See https://en.wikipedia.org/wiki/K-way_merge_algorithm#Tournament_Tree for more details on the algorithm.