burmanm / gorilla-tsc

Implementation of time series compression method from the Facebook's Gorilla paper
Apache License 2.0
210 stars 37 forks source link

Reconsider ZigZag for storing longs #9

Open burmanm opened 7 years ago

burmanm commented 7 years ago

When storing long values, ZigZag encoding should be considered (like with timestamps). While this can be done manually as well outside the library, it could as well be supported in the library.

This improves compression ratio when on negative/positive fluctuating serie (such as -1, 1, -1, 1)