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

"fix" the logic to call down into NativeInterpreter's abstract interpretation logic #27

Merged
merged 3 commits into from
Sep 13, 2020

Conversation

aviatesk
Copy link
Owner

@aviatesk aviatesk commented Sep 12, 2020

  • previous invoke_native turns out to be really slow, e.g. we need to
    wait ~120 sec to using StatsPlots; @profile_call density(rand(1000)),
    while native JIT compilation only takes around ~7 sec for that
  • the new @invoke_native avoids runtime type constructions and maybe
    excessive code generation, and now we can finish @profile_call density(rand(1000))
    within 15 sec (note that this time includes IO overheads),
    which is vastly faster than the previous implementation

…rpretation logic

- previous `invoke_native` turns out to be really slow, e.g. we need to 
wait ~120 sec to `using StatsPlots; @profile_call density(rand(1000))`, 
while native JIT compilation only takes around ~7 sec for that
- the new `@invoke_native` avoids runtime type constructions and maybe 
excessive code generation, and now we can profile on 
`density(rand(1000))` within 15 sec, which is vastly faster than current 
implementation
@codecov-commenter
Copy link

codecov-commenter commented Sep 12, 2020

Codecov Report

Merging #27 into master will increase coverage by 0.32%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
+ Coverage   72.42%   72.75%   +0.32%     
==========================================
  Files          10       10              
  Lines         671      679       +8     
==========================================
+ Hits          486      494       +8     
  Misses        185      185              
Flag Coverage Δ
#unittests 72.75% <100.00%> (+0.32%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/abstractinterpretation.jl 98.16% <100.00%> (+0.14%) ⬆️
src/tfuncs.jl 93.75% <100.00%> (ø)

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 9413811...9e649be. Read the comment docs.

@aviatesk aviatesk merged commit f8eafe5 into master Sep 13, 2020
@aviatesk aviatesk deleted the avi/@invoke_native branch September 13, 2020 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants