-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
Call empty! in block deletion #2614
Conversation
At some point we should add tests that check that a block and the relevant scenes, plots, etc. can be garbage collected once they're deleted. I assume unless the last observable connection is severed, that's not possible. |
The example from discourse still has a wild amount of listeners in Lines 177 to 182 in 94b5ec5
on doesn't add to obs.inputs ? Though most listeners seem to be maps from Lines 240 to 248 in 94b5ec5
block.blockscene.px_area.inputs ?
|
Yes, |
struct LocalEvents
global_events::Events
local_obsfuncs::Vector{Function}
end that adds to I think I'll give this a try later today. |
Compile Times benchmarkNote, 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(display(fig))
|
Description
See https://discourse.julialang.org/t/removing-row-from-gridlayout/93196
Still shouldn't completely clean up a block, but remove plots and a decent chunk of observables.
Add a description of your PR here.
Type of change