-
-
Notifications
You must be signed in to change notification settings - Fork 322
Return a Rich object instead of Dict for show_richest
#2139
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
Conversation
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="rh/rich-struct")
julia> using Pluto |
|
@fonsp, do you know where the following error is coming from? EDIT: Ah nevermind. This is |
|
I should have documented this somewhere 😭, but I have been purposefully restricting the communication between the Pluto runner and the Pluto server to Base Julia types only, to avoid difficult serialization problems. This will also make the transition to our own Distributed easier. |
No problem. It was a good learning experience 👍 |
|
997f313 :) |
I was trying to reduce the TTFX for
SessionActions.openand ended up inPlutoRunneragain.With this PR,
show_richestwill now always return aRichobject instead of aDict. This improves readability and also makes the compiler a bit happier. It reduces allocations from ~90 MB to ~80 MB on the TTFX benchmark of #2117 on@btimeit reduces time by 17 μs (wow wow). Anyway, the main argument for this PR is code readability.