Closed curran closed 6 years ago
At this point the algorithm is positioning labels very well according to interpolated values, but the interpolation itself is being done in the inner loop, which is quite a bit more expensive than it needs to be. I'd like to factor out the computation of the interpolated y0 and y1 values, the interpolated values could be computed once and re-used for each test.
Closes #15
Before:![image](https://user-images.githubusercontent.com/68416/28916234-2a4edf64-785f-11e7-9318-e0f3e01b481f.png)
After:![image](https://user-images.githubusercontent.com/68416/28927579-898552aa-7888-11e7-9157-f1476fb86461.png)