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

Performance improvements and refactoring #120

Merged
merged 6 commits into from
Dec 14, 2023

Conversation

mphe
Copy link
Collaborator

@mphe mphe commented May 12, 2023

This is a set of patches that try to improve the performance and reduce some code duplication.
546645a alone reduces overall generation time by 30-40%. See also #119.

There is still a lot more to optimize, but it's a start.
Depending on the state of #118, I can rebase my branch on @narren96c's branch.

All tests pass of course.

mphe added 6 commits April 1, 2023 15:59
Reduce code duplication and reduce unnecessary computions.
Cache matrices and use Transform2D * PackedVector2Array multiplication
where applicable.
It's the same as in shape_base.
Depending on shape size, this function alone takes up to 1ms!
It was called for every tesselated point.
By only calling this function once we can reduce generation time by
30-40%.

It's not a real fix, but it's a workaround for now.
@remorse107 remorse107 merged commit c41e95f into SirRamEsq:master Dec 14, 2023
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