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

Fix stack overflow in offset_bezierpath #3969

Merged
merged 3 commits into from
Jun 17, 2024
Merged

Fix stack overflow in offset_bezierpath #3969

merged 3 commits into from
Jun 17, 2024

Conversation

jkrumbiegel
Copy link
Member

Fixes #3960

@MakieBot
Copy link
Collaborator

MakieBot commented Jun 17, 2024

Compile Times benchmark

Note, that these numbers may fluctuate on the CI servers, so take them with a grain of salt. All benchmark results are based on the mean time and negative percent mean faster than the base branch. Note, that GLMakie + WGLMakie run on an emulated GPU, so the runtime benchmark is much slower. Results are from running:

using_time = @ctime using Backend
# Compile time
create_time = @ctime fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @ctime Makie.colorbuffer(display(fig))
# Runtime
create_time = @benchmark fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @benchmark Makie.colorbuffer(fig)
using create display create display
GLMakie 4.24s (4.18, 4.30) 0.04+- 104.29ms (103.24, 105.25) 0.75+- 483.02ms (475.20, 492.81) 5.90+- 8.57ms (8.32, 8.67) 0.12+- 25.55ms (25.38, 25.79) 0.15+-
master 4.24s (4.21, 4.30) 0.04+- 105.03ms (103.92, 107.81) 1.39+- 480.92ms (475.28, 489.97) 5.93+- 8.58ms (8.26, 8.71) 0.14+- 25.53ms (25.34, 25.91) 0.21+-
evaluation 1.00x invariant, -0.0s (-0.13d, 0.82p, 0.04std) 1.01x invariant, -0.73ms (-0.66d, 0.25p, 1.07std) 1.00x invariant, 2.1ms (0.35d, 0.52p, 5.92std) 1.00x invariant, -0.0ms (-0.03d, 0.95p, 0.13std) 1.00x invariant, 0.03ms (0.14d, 0.80p, 0.18std)
CairoMakie 3.87s (3.85, 3.90) 0.01+- 106.02ms (105.38, 107.75) 0.84+- 129.59ms (128.46, 130.89) 0.96+- 8.32ms (8.20, 8.39) 0.06+- 974.98μs (968.21, 984.46) 6.10+-
master 3.63s (3.60, 3.69) 0.03+- 106.33ms (105.42, 108.04) 0.92+- 129.53ms (127.75, 131.28) 1.46+- 8.36ms (8.23, 8.46) 0.07+- 978.50μs (966.55, 986.91) 6.59+-
evaluation 0.94x slower❌, 0.24s (9.95d, 0.00p, 0.02std) 1.00x invariant, -0.31ms (-0.35d, 0.53p, 0.88std) 1.00x invariant, 0.06ms (0.05d, 0.93p, 1.21std) 1.01x invariant, -0.04ms (-0.64d, 0.26p, 0.07std) 1.00x invariant, -3.53μs (-0.56d, 0.32p, 6.35std)
WGLMakie 4.70s (4.60, 4.83) 0.08+- 116.53ms (108.04, 132.90) 9.28+- 9.65s (9.15, 10.19) 0.34+- 10.33ms (9.60, 11.08) 0.57+- 75.83ms (70.58, 102.71) 11.86+-
master 4.67s (4.41, 4.91) 0.17+- 115.13ms (108.23, 131.30) 8.35+- 9.58s (9.26, 10.05) 0.26+- 10.03ms (9.62, 11.34) 0.61+- 72.09ms (71.11, 73.92) 0.97+-
evaluation 0.99x invariant, 0.03s (0.22d, 0.69p, 0.12std) 0.99x invariant, 1.4ms (0.16d, 0.77p, 8.81std) 0.99x invariant, 0.07s (0.24d, 0.66p, 0.30std) 0.97x invariant, 0.3ms (0.51d, 0.36p, 0.59std) 0.95x invariant, 3.74ms (0.44d, 0.44p, 6.42std)

@jkrumbiegel jkrumbiegel merged commit 36b8b21 into master Jun 17, 2024
8 of 9 checks passed
@jkrumbiegel jkrumbiegel deleted the jk/fix-3960 branch June 17, 2024 08:29
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.

Stack overflow for BezierPath marker in data space
2 participants