Subject: | method to speed up add_data |
Hello Shlomi,
It is possible to speed up Statistics::Descriptive::Full::add_data by
using functions available in List::Util and List::MoreUtils. Some of
the other S::D subs could benefit from these as well.
The speed ups I get are typically around 10-20% (range 0-45), depending
largely on the size of the data. I benchmarked with 100, 1000 and 10000
records.
One issue is that this approach requires the addition of two new
dependencies, albeit one of them is in the core. Whether that is an
issue obviously depends on how stand-alone you want the package to be.
If you're open to the idea then I'll submit a patch.
Regards,
Shawn.