tail icon indicating copy to clipboard operation
tail copied to clipboard

Turn Linear Search Into Binary Search for Width Calculation

Open alpaylan opened this issue 2 years ago • 0 comments

In src/element.rs line 141, break_lines function calculates lines by doing a linear search until it finds the cutoff point. This can be easily turned into a binary search.

alpaylan avatar Aug 11 '23 03:08 alpaylan