Show HN: Striq – Query lossy time series in C at 0.4µs without decompressing

github.com

2 points

NahumResearch09

a day ago


1 comment

NahumResearch09 a day ago

I built STRIQ because decompressing time series CSVs just to get a simple average at work was driving me crazy. It is a pure C11 lossy compression library with zero dependencies that evaluates closed form algebra directly on compressed data using piecewise linear approximation. Timestamps are lossless and you set a max error bound for the lossy float64 values. On a 420K row climate dataset a mean query takes 0.4 microseconds while Zstd compresses 15 percent smaller but takes 3.4 milliseconds to answer because of the inflation overhead. I also added a Python binding so it is easy to drop into existing pipelines.

C Core https://github.com/NahumResearch/striq Python binding https://github.com/NahumResearch/py-striq Benchmarks https://github.com/NahumResearch/striq?tab=readme-ov-file#de...