GithubHelp home page GithubHelp logo

ccollie / metricsql Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.08 MB

A Prometheus-compatible query parser and execution engine in Rust

License: Apache License 2.0

Rust 100.00%
promql rust prometheus

metricsql's People

Contributors

ccollie avatar

Watchers

 avatar

metricsql's Issues

Upgrade q_compress -> pco

Hi, I'm the main author of q_compress, and I think metricsql would benefit from upgrading to my new library, pco. Across various real-world datasets, it has

  • 2-100% higher compression ratio
  • 20-50% faster compression
  • 300-400% faster decompression

Plus, pco will continue to improve. q_compress will still work, and I'll still maintain it for bug fixes, but limitations in its format prevent it from achieving extremely fast decompression.

Q: If the qco format had limitations that forced you to release a new format after 2 years, how do we know the new format will last?
A: I don't profess to know the future, but I expect pco's format to be state of the art for many years. I consulted an expert in performant compression to help vet the format. I've iterated based on assembly code to make sure pco can use SIMD where possible. And I've carefully made the format extensible to more types of data for future adaptation.

Q: What does the upgrade look like?
A: The auto_[de]compress are still there, under pco::standalone::, so those ones are trivial to port over. I see you're using parts of the low-level API, and pco is slightly different, but will probably simplify your code somewhat. The entry points are in pco::wrapped::{FileCompressor, FileDecompressor}. docs.rs is the best place for details. And of course, if you have existing .qco data, you'll need to keep using q_compress for decompression until it's ported over. If necessary, you can distinguish standalone .qco data from .pco data by the magic 4 bytes in the header.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.