Closed msiddhu closed 3 days ago
The committers listed above are authorized under a signed CLA.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 87.67%. Comparing base (
497eaf4
) to head (17aeaba
). Report is 91 commits behind head on main.
Thanks for suggesting. I think CI Checks should starting running now.
Similar change can be done for BatchLogProcessor. @msiddhu just in case you can handle as separate as same PR :)
Thanks for pointing out. Made the suggested changes. Please review.
Changes
Added
.reserve
forspans_arr
in BatchSpanProcessor (Small Optimization)Helps to allocate the amount of memory needed for number of records so that dynamic memory allocation doesn't happen in the consume method.
.push_back()
reallocates memory each time the method is called.Using
.reserve()
would avoid memory reallocation as already the memory is allocated.References: C++ Vector push_back C++ Vector reserve
CHANGELOG.md
updated for non-trivial changes