hypertidy / geodist

Ultra lightweight, ultra fast calculation of geo distances
https://hypertidy.github.io/geodist/
Other
94 stars 8 forks source link

"Unroll" some of the C loops? #15

Open mpadge opened 6 years ago

mpadge commented 6 years ago

This would require a pretty extensive restructure of current code, but the kind of unrolling I discovered via @njtierney here, and explained in this blog post might offer even more speed improvements?

njtierney commented 6 years ago

I wonder if it would be worthwhile to consider the speed improvements of using RcppParallel - looking at this example here where they create a distance matrix, they get a 5.5x speedup to regular Rcpp code, which is pretty nice.

njtierney commented 6 years ago

I'm happy to look into using RcppParallel if that would be helpful?