Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Precompile for speed #126

Merged
merged 2 commits into from
Nov 12, 2018
Merged

Precompile for speed #126

merged 2 commits into from
Nov 12, 2018

Conversation

staticfloat
Copy link
Member

Also increase relocatability

@KristofferC
Copy link
Member

I have never seen precompile give any speed benefit except if used in combination with sysimg building. Do you have any numbers here or is the purpose actually to make BP faster when used in sysimgs?

@KristofferC
Copy link
Member

Also not that you are including all anonymous functions here, so as soon as you make a change in a closure or something, this will likely break since the symbol will be gone.

@staticfloat
Copy link
Member Author

staticfloat commented Oct 7, 2018 via email

@staticfloat
Copy link
Member Author

staticfloat commented Oct 7, 2018 via email

@codecov-io
Copy link

codecov-io commented Oct 10, 2018

Codecov Report

Merging #126 into master will decrease coverage by 0.17%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #126      +/-   ##
==========================================
- Coverage    88.4%   88.23%   -0.18%     
==========================================
  Files           8        8              
  Lines         647      646       -1     
==========================================
- Hits          572      570       -2     
- Misses         75       76       +1
Impacted Files Coverage Δ
src/BinaryProvider.jl 100% <100%> (ø) ⬆️
src/Prefix.jl 90.6% <0%> (-0.62%) ⬇️
src/PlatformEngines.jl 71.95% <0%> (-0.17%) ⬇️
src/OutputCollector.jl 93.61% <0%> (-0.07%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cb403e6...302ffa8. Read the comment docs.

@staticfloat
Copy link
Member Author

Welp, that didn't take long to get annoying. :P I removed everything that had a name starting with #.

@KristofferC
Copy link
Member

You could always just generate it for a release.

@staticfloat
Copy link
Member Author

Yes, well another annoyance is that some anonymous functions don't exist on some platforms, so the precompile.jl file has to be the intersection of snoop runs on all different platforms. :/

It's okay, with these few lines I already get most of the benefit, so no biggie.

@staticfloat staticfloat merged commit 0f1d2cb into master Nov 12, 2018
@ararslan ararslan deleted the sf/relocatability branch November 12, 2018 20:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants