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

Small tweaks #1

Merged
merged 2 commits into from
Mar 1, 2022
Merged

Small tweaks #1

merged 2 commits into from
Mar 1, 2022

Conversation

stuarteberg
Copy link
Contributor

In my (brief) benchmarking, nearly half of the time is spent in sort_cols(). It turns out you can use np.lexsort() for that, which is 1.5-2x faster, reducing overall mesh generation time by ~25%.

The other commit here is pretty minor. It shaves off ~1% of the overall execution time. :-)

@schlegelp
Copy link
Contributor

Thanks! Nice catch with lexsort!

@schlegelp schlegelp merged commit cacbbdd into navis-org:main Mar 1, 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.

None yet

2 participants