in reply to Re: This runs WAY too slow
in thread This runs WAY too slow
Ok, so you've isolated a small piece of code that does something bad with some data, great work. But, you haven't given us a framework to test the code nor a failing data set, or even a real indication of what the input data should look like.
Although laziness is generally to be applauded in the Perl community, it's a form of laziness that requires some work up front. Just a little more work to put that code into a context we can run and a little data will go a long way toward saving us all some time in resolving your problem.
Note that with simulation bugs where you are using 'random' data it is often useful to seed the random number generator to ensure consistent results for debugging. Even for production code it is a good idea to record the seed that was used for a run so that unexpected results are easier to reproduce.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: This runs WAY too slow
by Dandello (Monk) on Jan 17, 2011 at 06:36 UTC | |
by Dandello (Monk) on Jan 17, 2011 at 06:55 UTC | |
by GrandFather (Saint) on Jan 17, 2011 at 08:04 UTC |