PHP Speed Tips
A couple tips to enhance performance with PHP and save the Zend Engine milliseconds of extra work. It’s not a huge deal now, but in the long term it pays if …
Video Rating: 4 / 5
Developers of Business Software, Apps, and Websites
A couple tips to enhance performance with PHP and save the Zend Engine milliseconds of extra work. It’s not a huge deal now, but in the long term it pays if …
Video Rating: 4 / 5
Powered by Yahoo! Answers
@trippplep Im not sure this has much to do with speed does it?
thanks
@JREAMdesign Cool tips, thanks. Also a nice tip: Use preincrementation
instead of postincrementation anywhere its possible because
preincrementation is about 10% faster then postincrementation. Especially
in for-loops with huge iterations: for ($a = 0; $a < 500000; $a++) { } //standard for ($a = 0; $a < 500000; ++$a) { } //faster!! Notice that $a will also start at 0 inside the parentheses in the ++$a example (and not at 1), so you have not to worry about the indexes of your arrays!
$person = “friend”; echo “Hello my $person”;
Thank you a lot =) *subscribed*
thank you! :-*
also: $person = “friend”; echo “Hello my {$person}”;
I made a cache class, pm me if you’re interested in seeing the source code.
@trippplep cool man thanks!
Thanks a lot.
@JREAMdesign As a matter of a fact, yes it does. The method I displayed, is
2-3 times faster at handling strings. The difference is really noticed when
dealing with large amounts of strings..