Closed waynexia closed 3 months ago
Attention: Patch coverage is 60.00000%
with 22 lines
in your changes missing coverage. Please review.
Project coverage is 84.79%. Comparing base (
cc2f7ef
) to head (4923089
). Report is 5 commits behind head on main.
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
Optimize
HttpRecordsOutput::try_new()
method. Reduce the consumption of converting 409600 rows from ~400ms to ~120ms. Saves ~70% CPU.This patch also adds a microbenchmark for that method.
Key optimizations are:
Value::String
fromBytes
toString
Clone
sNow the entire conversion method only has one
clone
that takes data from the data vector, and onewrite
that writes the serialized content to the result vector.Checklist