Skip Menu |

This queue is for tickets about the Statistics-Descriptive CPAN distribution.

Report information
The Basics
Id: 83724
Status: resolved
Priority: 0/
Queue: Statistics-Descriptive

People
Owner: Nobody in particular
Requestors: SLAFFAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.
The relevant changes were included via pull request #6 - https://bitbucket.org/shlomif/perl-statistics-descriptive/pull-request/6/make-the-methods-faster/diff This ticket can be closed. Thanks, Shawn. On Sat Mar 02 03:38:10 2013, SLAFFAN wrote: Show quoted text
> 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.
Hi Shawn, On Wed Mar 26 21:58:53 2014, SLAFFAN wrote: Show quoted text
> The relevant changes were included via pull request #6 - > https://bitbucket.org/shlomif/perl-statistics-descriptive/pull- > request/6/make-the-methods-faster/diff > > This ticket can be closed. >
Closing then, thanks. Regards, -- Shlomi Fish Show quoted text
> Thanks, > Shawn. > > > On Sat Mar 02 03:38:10 2013, SLAFFAN wrote:
> > 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.