Closed lucab closed 1 week ago
This improves get_lines() logic by using a string-buffer with a capacity hint. That avoids growing the buffer from zero each time, saving a bunch of reallocations.
get_lines()
This is a forwarded patch from https://github.com/oxc-project/oxc/pull/3897, see there for further explanations and datapoints.
This improves
get_lines()
logic by using a string-buffer with a capacity hint. That avoids growing the buffer from zero each time, saving a bunch of reallocations.This is a forwarded patch from https://github.com/oxc-project/oxc/pull/3897, see there for further explanations and datapoints.