[Israel.pm] Article: Optimizing Perl

Shlomo Yona shlomo at cs.haifa.ac.il
Thu Oct 28 02:38:37 PDT 2004

On Thu, 28 Oct 2004, Gabor Szabo wrote:

> He also shows a couple of micro optimisations (such as double quotes
> single quotes ?) I have not heard this one yet. I keep hearing the
> question which is faster:
> print "$x$y";
> print $x, $y;
> print $x . $y;

And the answer is...? (I do remember what MJD answered, I'm
curious what yours is).

> Very nice. I just encountered a piece of code that was running slowly.
> I immediately saw I could optimise it with one of the above ways and
> gain maybe as much as 10-20%.
> Or I can replace the database which was a DB file with a real SQL database
> and get a speed improvement of about x50  (50 times faster).

I don't understand the above examples. What's your point?

> Let's hear Shlomo about data structures ! :)

Great. What are your preferences for such a lecture?

Shlomo Yona
shlomo at cs.haifa.ac.il

More information about the Perl mailing list