Think about Loose Coupling | |
PerlMonks |
Re: Mysterious slow down with large data setby BrowserUk (Patriarch) |
on Feb 26, 2012 at 22:13 UTC ( [id://956323]=note: print w/replies, xml ) | Need Help?? |
I can't see what is causing the slowdown, but I can see one obvious thing that would speed it up a lot. You keep re-sorting the keys to %kernel every time when they do not change. Instead of:
Using:
may speed things up to the point that the slowdown becomes insignificant. Also, using a sort to track top N is probably slower than a simple linear insertion and truncate if necessary. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|