On Sun, 24 Aug 2003 01:45:42 +0000, Pablo Fischer wrote:
> I have a system (with 3 classes), that works in this order:
> [...deleted...]
> How good its to do this in 10 seconds?
> Exists a website with benckmark running times in Perl?
How good is it??? Depends on your goals and your hardware.

It seems that you attack this from the wrong angle. Everything that is fast enough to 
solve your problem in a given time is fast enough. I.e. If you don't have any 
requirements towards how fast you have to sort the data means that your program is 
fast enough.

The question you are asking is about perl optimization... which is mostly answered 
with the following answer: DON'T... STOP... DON'T EVEN THINK ABOUT IT.

Various reasons behind all of this is that people don't know which part they have to 
optimize. Even though their are modules that will help you to find out the lines of 
code that take the longest. 

Take a look at Devel::DProf which is a Perl code profiler.

Though always remember: Optimization takes time, increases complexity, adds bugs, 
wrecks encapsulation, reduces readability and last but not least makes your code 
unmaintainable.

thanks
/oliver/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to