in reply to perl process slower and slower when loop number increase

As a good book once said, "Don't diddle code to make it faster – find a better algorithm." Given the speed of today's CPUs you probably can't create a compute-bound process that will differ substantially in execution time based on a thing like "PHP vs. Perl vs. Ruby vs. ..." If the program is too slow, find a better algorithm. It's just that simple.
  • Comment on Re: perl process slower and slower when loop number increase

Replies are listed 'Best First'.
Re^2: perl process slower and slower when loop number increase
by Your Mother (Archbishop) on Jan 22, 2018 at 17:00 UTC

    How would CPU speed be relevant in comparing two languages run on the same CPU? Perhaps you could suggest a better algorithm here or an operator optimization as hippo was able to do? Sounds [just that] simple.