Article written by

4 Responses

Page 1 of 1
  1. gav
    gav at | | Reply

    When I code something from scratch I automatically use single quotes unless I am actually putting variables into my strings. Yes, this is because I heard the tip about micro optimization. I realize it probably doesn’t help any significant amount, but my code is standardized!

    Nice article.

  2. PhiLho
    PhiLho at | | Reply

    Well, I would answer: “Stop making meaningless micro-benchmarks”…
    If I am not mistaken, the micro-optimization is about time to convert PHP source code to bytecode. So your brenchmark measures nothing.
    Now, the difference is probably small for lot of applications. But it might do a difference for Web sites with millions of users, or large files mostly holding localization strings.

Leave a Reply