mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-29 11:20:38 +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>
37 lines
764 B
TOML
37 lines
764 B
TOML
[package]
|
|
name = "mito-codec"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[features]
|
|
default = []
|
|
testing = []
|
|
|
|
[dependencies]
|
|
api.workspace = true
|
|
bytes.workspace = true
|
|
common-base.workspace = true
|
|
common-decimal.workspace = true
|
|
common-error.workspace = true
|
|
common-macro.workspace = true
|
|
common-recordbatch.workspace = true
|
|
common-telemetry.workspace = true
|
|
common-time.workspace = true
|
|
datatypes.workspace = true
|
|
memcomparable = "0.2"
|
|
paste.workspace = true
|
|
serde.workspace = true
|
|
snafu.workspace = true
|
|
store-api.workspace = true
|
|
|
|
[dev-dependencies]
|
|
criterion = "0.7"
|
|
datafusion-common.workspace = true
|
|
datafusion-expr.workspace = true
|
|
|
|
[[bench]]
|
|
name = "bench_sparse_encoding"
|
|
harness = false
|
|
required-features = ["testing"]
|