Skip to content
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

optimize condenseTree and computeBoundingBox #44

Merged
merged 2 commits into from
Aug 19, 2022
Merged

optimize condenseTree and computeBoundingBox #44

merged 2 commits into from
Aug 19, 2022

Conversation

fumin
Copy link
Contributor

@fumin fumin commented Aug 18, 2022

condenseTree contains memory allocations that when triggered causes the
following time spent:

runtime.mheap.alloc 39.27%

before_mheap

Similarly, particular Delete heavy workloads might trigger unnecessary

computeBoundingBox 16.57%

before_computeBoundingBox

This change fixes these performance issues.

after

condenseTree contains memory allocations that when triggered causes the
following time spent:

runtime.mheap.alloc 39.27%

Similarly, particular Delete heavy workloads might trigger unnecessary

computeBoundingBox 16.57%

This change fixes these performance issues.
rtree.go Show resolved Hide resolved
rtree.go Show resolved Hide resolved
@dhconnelly
Copy link
Owner

looks good, just adding a couple of small comments would be helpful!

Co-authored-by: Daniel Connelly <dhconnelly@gmail.com>
@fumin
Copy link
Contributor Author

fumin commented Aug 19, 2022

looks good, just adding a couple of small comments would be helpful!

Applied the suggestions therein, thanks for the review.

@dhconnelly dhconnelly merged commit ae422b1 into dhconnelly:master Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants