Turfjs / turf

A modular geospatial engine written in JavaScript and TypeScript
https://turfjs.org/
MIT License
9.25k stars 937 forks source link

@turf/buffer 7.0.0 is slower than 6.5.0 in vue #2687

Closed yangyanggu closed 1 month ago

yangyanggu commented 1 month ago

Description

When i use @turf/buffer to buffer a line, i find 7.0.0 slower than 6.5.0 . the line has 300 points, in 6.5.0 ,it took 2255 ms, but in 7.0.0, it took 4856 ms

demo

smallsaucepan commented 1 month ago

Thanks for reporting @yangyanggu. I ran your two example apps and actually got the opposite result - v7 was faster 😯

Average over five runs:

6.5.0 - 2702ms 7.0.0 - 646ms

Perhaps one of the other Turf maintainers could try as well to gather more data points before we investigate further? @mfedderly @JamesLMilner @twelch

yangyanggu commented 1 month ago

Thanks, I find v7 was faster, In my home PC, v7 was very fast, Perhaps my company's software is causing the speed to slow down, Thansk for your reply