-
Notifications
You must be signed in to change notification settings - Fork 950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
40% faster turf-area #2520
40% faster turf-area #2520
Conversation
Thanks @AminoffZ, full test suite in CI is running now. After a quick initial review, when I read your comment "Fixed the issue with turf-isobands. Had to REGEN=true for turf-nearest-neighbor-analysis", I was expecting to see code in your PR somewhere related to it, but it wasn't clear to me. Can you say more about this comment and any code changes for it? Perhaps you possibly forgot to commit some of the code? Thanks. |
EDIT: The turf-isobands was failing its test in the PR this is derived from. #1387 |
Thank you. I guess I was expecting the REGEN=true to be a code change as well. I can see now there is a level to the repo/testing I don't understand yet either. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @AminoffZ for this contribution, I approve. I see now that you used REGEN=true to update the test outputs, which look very very close to the previous.
@AminoffZ before I merge, can you go ahead and update the performance benchmark in |
This is a continuation on #1387, again only modifying the
function ringArea(coords: number[][]): number
. Fixed the issue with turf-isobands. Had to REGEN=true for turf-nearest-neighbor-analysis. There were some floating point differences on random-large-study-area.json wherearea(studyArea)
would returninstead of
Bench
Before
After
Please fill in this template.
npm test
at the sub modules where changes have occurred.npm run lint
to ensure code style at the turf module level.