Geovation / labelgun

🏷️ reducing label clutter across mapping libraries
https://geovation.github.io/labelgun/
113 stars 10 forks source link

Optimizations #30

Closed ibesora closed 6 years ago

ibesora commented 6 years ago

Things changed

src/labelgun.js

spec/labelgun.spec.js

Results

20 executions of the benchmark clocked at an average of 25.6 milliseconds before the optimization. After the optimization the average is 12.3 milliseconds. Twice as fast.

JamesLMilner commented 6 years ago

Hey @ibesora firstly thank you for your work, greatly appreciated! Generally looks good. It looks like the tests all pass. I'll merge it!