MAKE PACKAGES!
Use git, at least locally for yourself.
git
If needed (i.e. after optimization of code itself), do not be afraid of using Rcpp and/or parallelizing your code.
Rcpp