Skip to content
makr-code edited this page Dec 21, 2025 · 1 revision

gorilla.cpp

Stand: 5. Dezember 2025
Version: 1.0.0
Kategorie: Src


Path: src/timeseries/gorilla.cpp

Purpose: Gorilla encoder/decoder implementation used for efficient TS compression.

Public functions / symbols:

  • ``
  • if (bitpos_ == 8) {
  • for (int i = 0; i < bits; ++i) {
  • while (v >= 0x80) {
  • if (bitpos_ != 0) {
  • : buf_(data) {
  • while (true) {
  • while (bitpos_ != 0) { (void)readBit(); }
  • if (first_) {
  • : br_(data) {}
  • if (!different) {
  • _BitScanReverse64(&idx, x);
  • return __builtin_clzll(x);
  • _BitScanForward64(&idx, x);
  • return __builtin_ctzll(x);
  • writeVarUInt(zz);

Clone this wiki locally