mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-17 05:20:37 +00:00
* perf/sparse-encoder: - **Update Dependencies**: Updated `criterion-plot` to version `0.5.0` and added `criterion` version `0.7.0` in `Cargo.lock`. Added `bytes` to `Cargo.toml` in `src/metric-engine`. - **Benchmarking**: Added a new benchmark for sparse encoding in `bench_sparse_encoding.rs` and updated `Cargo.toml` in `src/mito-codec` to include `criterion` as a dev-dependency. - **Sparse Encoding Enhancements**: Modified `SparsePrimaryKeyCodec` in `sparse.rs` to include new methods `encode_raw_tag_value` and `encode_internal`. Added public constants `RESERVED_COLUMN_ID_TSID` and `RESERVED_COLUMN_ID_TABLE_ID`. - **HTTP Server**: Made `try_decompress` function public in `prom_store.rs`. Signed-off-by: Lei, HUANG <mrsatangel@gmail.com> * perf/sparse-encoder: Improve buffer handling in `sparse.rs` - Refactored buffer reservation logic to use `value_len` for clarity. - Optimized chunk processing by calculating `num_chunks` and `remainder` for efficient data handling. - Enhanced manual serialization of bytes to avoid byte-by-byte operations, improving performance. Signed-off-by: Lei, HUANG <mrsatangel@gmail.com> * Update src/mito-codec/src/row_converter/sparse.rs Co-authored-by: Yingwen <realevenyag@gmail.com> --------- Signed-off-by: Lei, HUANG <mrsatangel@gmail.com> Co-authored-by: Yingwen <realevenyag@gmail.com>