Skip to content

Conversation

@kylebaron
Copy link

  1. Moves the sourceCpp call outside of the outer loop (it should be called only once), and prior to the start of the timer (so that the timing results don't include compilation time)
  2. The compiled code is re-factored so that there is just a single call to the Rcpp stuff to do the calculations (prevents repeated switching back and forth between R and Rcpp)
  3. I maintained the original flow of the code as much as possible and retained the original Rcpp files for comparison

Thanks for considering the pull request.

Kyle

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.

1 participant