in reply to Re: Mysterious slow down with large data set
in thread Mysterious slow down with large data set
Yes, I can't believe I did that. Thank you!
Regarding the top N, I had previously tried this, which worked, but seemed more complicated. Is this what you had in mind?
Thanks!} elsif ($sim > min(pdl(@topList))) { $theMin = grep { $topX[$_] eq min(pdl(@topX)) } 0..$#topX; # replace the smallest $topX[$theMin] = $sim; # add this one push @topX, $sim; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Mysterious slow down with large data set
by BrowserUk (Patriarch) on Feb 27, 2012 at 00:22 UTC |