ELSEIF
Your brief EB
295 stories from 73 feeds 93 clusters Refreshed 1 minute ago next pull 17:21

PERFORMANCE Signal 398

Just One Function, 10x Faster? Reading a Rust Performance PR

A single-function rewrite in GreptimeDB’s Prometheus remote-read path cuts the RecordBatch-to-TimeSeries conversion time by more than tenfold.

WHY IT MATTERS

The conversion step previously consumed over a third of CPU in a realistic workload, limiting read-throughput. By integrating the optimized version, services can handle many more series per second without additional hardware. Existing deployments need only upgrade to the beta release that includes the change.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

The PR replaces the original recordbatches_to_timeseries implementation in src/servers/src/prom_store.rs.

02

Benchmarks show throughput rising from roughly 2 M rows / s to well over 20 M rows / s for typical series-by-samples patterns.

03

Dictionary-encoded label data remains slower than plain UTF-8 strings, indicating a separate optimization opportunity.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
Lobsters Just One Function, 10x Faster? Reading a Rust Performance PR Open ↗