-
Notifications
You must be signed in to change notification settings - Fork 102
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
add basic precompilation #337
Conversation
Codecov Report
@@ Coverage Diff @@
## master #337 +/- ##
==========================================
- Coverage 99.51% 98.63% -0.88%
==========================================
Files 5 5
Lines 410 441 +31
==========================================
+ Hits 408 435 +27
- Misses 2 6 +4
Continue to review full report at Codecov.
|
That's crazy. What is it that takes so much time to compile? Must be Parsers.jl? Edit: Before #285 |
I have another PR over at Parser.jl that has a similar crazy effect on CSV.jl JuliaData/Parsers.jl#108 Something going on... |
The combined effect of both of these PRs on Blink.jl julia> @time using Blink
2.005740 seconds (3.79 M allocations: 255.856 MiB, 7.74% gc time, 68.09% compilation time)
julia> @time Window()
6.817974 seconds (14.42 M allocations: 779.489 MiB, 3.63% gc time, 97.04% compilation time)
Window(1, Electron(Process(`/home/raf/.julia/dev/Blink/deps/atom/electron /home/raf/.julia/dev/Blink/src/AtomShell/main.js port 5005`, ProcessRunning), Sockets.TCPSocket(RawFD(22) active, 0 bytes waiting), Dict{String, Any}("callback" => Blink.var"#1#2"())), Page(1, WebSocket(server, CONNECTED), Dict{String, Any}("webio" => Blink.AtomShell.var"#22#23"{Blink.AtomShell.WebIOBlinkComm}(Blink.AtomShell.WebIOBlinkComm(Window(#= circular reference @-5 =#))), "callback" => Blink.var"#1#2"()), Distributed.Future(1, 1, 1, Some(true))), Task (done) @0x00007f1e570f9cd0) So precompilation here is still catching something not covered in Parsers.jl precompilation. |
Can we get this merged? |
Tests fail due to the |
Oh right I pushed that after asking to merge 😅 Was just looking to get rid of missing code coverage lines. What do you think? |
It runs during precompilation so it is tested. Imo just remove it. |
This tiny PR Improves the ttfx time of Blink.jl by 5 seconds. Probably also helps other packages that use JSON.jl
Current master here and with Blink.jl:
This PR: