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

JIT: How much of a performance gain, automatic(?), and is it safe everywhere? #133

Open
HenrikBengtsson opened this issue Mar 14, 2017 · 1 comment

Comments

@HenrikBengtsson
Copy link
Collaborator

It's been on my to-do list to consider adding just-in-time compilation of future expression, particularly for future_lapply() (and also to doFuture). Since R is about to gain automatic JIT compilation, I've held back on this to see where we end up.

Today I've noticed the following in SVN commit to R-base on 2017-03-14:

Disable JIT in R processes created in mclapply and friends (performance optimization, prevents repeated compilation of the same code).
wch/r-source@62b3dd0

Are the cases where we need to do similar protection? I don't think so, and all system-wide tests indicate it's not needed, but I'm adding this issue here as a reminder to myself.

@seonghobae
Copy link

I made the fail-safe codes in the for loop to do that. Try the parallel work in the for looping; it fails, rechecks server status retries them. After that, if I could get the result, I save the RDS file in the local.

Codes: https://github.com/seonghobae/kaefa/blob/master/R/kaefa.R#L453 and https://github.com/seonghobae/kaefa/blob/master/R/kaefa.R#L499

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

No branches or pull requests

2 participants