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

Improve WKB performance. #24

Merged
merged 2 commits into from
Nov 11, 2023
Merged

Improve WKB performance. #24

merged 2 commits into from
Nov 11, 2023

Conversation

evetion
Copy link
Owner

@evetion evetion commented Nov 10, 2023

Given

using WellKnownGeometry
julia> n = 1_000_000
1000000

julia> points = zip(rand(n), rand(n));

New

julia> @time getwkb.(points);
  0.249585 seconds (2.36 M allocations: 138.888 MiB, 12.17% gc time, 37.81% compilation time)

julia> @time getwkb.(points);
  0.180918 seconds (2.00 M allocations: 114.441 MiB, 26.30% gc time)

Before

julia> @time getwkb.(points);
  0.310216 seconds (6.19 M allocations: 371.373 MiB, 29.10% gc time, 13.66% compilation time: 100% of which was recompilation)

julia> @time getwkb.(points);
  0.380223 seconds (6.00 M allocations: 358.582 MiB, 50.55% gc time)

@evetion evetion merged commit 969462e into main Nov 11, 2023
6 of 7 checks passed
@evetion evetion deleted the feat/perf branch November 11, 2023 09:33
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.

1 participant