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

Encapsulate ccalls to enhance interpreter usage #43

Merged
merged 1 commit into from
Dec 3, 2019
Merged

Conversation

timholy
Copy link
Owner

@timholy timholy commented Dec 3, 2019

If Julia compiles the returned expression, we will "miss" the inference time because the compilation happens before we turn snooping on.

The logic here indicates that the ccalls could force Julia to use the compiler, so move these inside a function.

If Julia compiles the returned expression, we will "miss" the inference 
time because the compilation happens before we turn snooping on.

The logic in 
https://github.com/JuliaLang/julia/blob/84e839227f7762b6dfa0821247cd132cf15e3581/src/toplevel.c#L793-L815
indicates that the `ccall`s could force Julia to use the compiler,
so move these inside a function.
@timholy
Copy link
Owner Author

timholy commented Dec 3, 2019

Oddly, the two builds used different versions of nightly. Passes on the more recent, so this is good to merge.

@timholy timholy merged commit 9cd43de into master Dec 3, 2019
@timholy timholy deleted the teh/interpreter branch December 3, 2019 10:06
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.

None yet

1 participant