-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
🧂 more precompile for dynamic functions! #1978
Changes from all commits
e8531ed
a12233e
e693252
b417fda
ce5ede9
bc9bbf2
b5fa292
bc0a843
3c16a38
847e309
bee1811
9a2fa52
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -85,4 +85,5 @@ end | |||
|
||||
function unpack(args...) | ||||
MsgPack.unpack(args...) |> decode_extension_and_addbits | ||||
end | ||||
end | ||||
precompile(unpack, (Vector{UInt8},)) | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Minor effect Without
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,7 @@ function run(; kwargs...) | |
options = Configuration.from_flat_kwargs(; kwargs...) | ||
run(options) | ||
end | ||
precompile(run, ()) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one works. Although I cannot measure Without
|
||
|
||
function run(options::Configuration.Options) | ||
session = ServerSession(; options) | ||
|
@@ -323,6 +324,7 @@ function run(session::ServerSession, pluto_router) | |
end | ||
end | ||
end | ||
precompile(run, (ServerSession, HTTP.Handlers.Router{Symbol("##001")})) | ||
|
||
get_favorite_notebook(notebook:: Nothing) = nothing | ||
get_favorite_notebook(notebook:: String) = notebook | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slight improvement:
Without
precompile
With
precompile