Skip to content
Prev 4675 / 15274 Next

Speed issue issue with periodReturn

Ian Coe wrote:
Ian,

1/20th of a second for WEEKLY aggregated returns on 2+ years of data 
doesn't seem outrageous.  So might gain a tiny bit by calling log() 
directly, but I doubt it.  I could of course be wrong, but the tiny time 
difference seems trivial, not "non-trivial".  Perhaps you need to 
investigate use of foreach and doMC for your larger problem?

Regards,

   - Brian