On 07/31/2015 07:39 AM, David Emanuel da Costa Santiago wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256



Hello.


Thanks for your reply.


I remember that i did some performance tests and

$string = $string ."something"

had better performance than

$string .= "something"

which matched the results of (link to stack overflow)
http://stackoverflow.com/questions/3104493/performance-with-perl-strings

as someone else said here and at stackoverflow, that benchmark was done incorrectly and doesn't compare what you are doing. so ignore it.


I'm going to try your suggestions an i will report back.


my suggestions are all valid and good perl. this is from experience and knowing how perl operates. it isn't only speed but clearer code. you asked for reasons your code it slow and it is many things which i pointed out. i can assure you if you did all of my suggestions you would gain speed. how much i can't say.

uri

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to