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

Optimize deep_enough_copy for faster notebook updates #2974

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

fonsp
Copy link
Owner

@fonsp fonsp commented Aug 5, 2024

For large notebooks, deep_enough_copy creates a bottleneck for update speed.

This PR uses @generated to make this function faster.

On the statefile of https://gist.github.com/yha/4ed9406d2c8b8fd7c50aadccdb5c2982

Before: 3.991 ms

After: 1.167 ms

@fonsp fonsp added backend Concerning the julia server and runtime performance labels Aug 5, 2024
Copy link
Contributor

github-actions bot commented Aug 5, 2024

Try this Pull Request!

Open Julia and type:

julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="deep_enough_copy-speedup")
julia> using Pluto

@fonsp fonsp merged commit 8b7a65d into main Aug 5, 2024
12 of 15 checks passed
@fonsp fonsp deleted the deep_enough_copy-speedup branch August 5, 2024 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Concerning the julia server and runtime performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant