Open dcnorris opened 3 years ago
Wow, thanks @dcnorris I do have a very fast vectorised exp/log that I hope to roll out in due course as part of another long term project.
It is worth looking at the rayon package for parallel iterators if your vectors are large.
Thanks for this wonderful project. In under 24h, never having written any Rust code before, I have achieved a 2.5x speedup of an objective function that is invoked by base::integrate().
FYI, here is the original function from package dfcrm ...
and here is my initial direct translation into Rust:
Speaking from the POV of the Rust novice, the sort of example I would find most helpful would show a cascade of performance improvements that start with 'elegant' or 'default' wrappings and proceed step-wise through a series of tuning steps that exploit language features like borrowing, etc. Alluding to equivalent constructs in C would help orient users who are familiar with performance-tuning tricks in that language.