PHP Classes
elePHPant
Icontem

Sure, but performance..

Recommend this page to a friend!

      PHP Classes blog  >  You have doing PHP it...  >  All threads  >  Sure, but performance..  >  (Un) Subscribe thread alerts  
Subject:Sure, but performance..
Summary:Performance
Messages:3
Author:Vlad
Date:2016-10-12 08:47:28
Update:2016-10-12 20:43:16
 

 


  1. Sure, but performance..   Reply   Report abuse  
Vlad - 2016-10-12 08:54:48
Don't forget about performance. PHP iterators are quite expensive.

  2. Re: Sure, but performance..   Reply   Report abuse  
Michael Cummings - 2016-10-12 16:58:18 - In reply to message 1 from Vlad
As pointed out in the comment above you are already using Iterators in the background in loops so there really is no performance difference. The only difference you should ever notice is between the built-in (c code) vs doing everything in PHP. It has a lot to do with using the right tool for the job by know the language better instead of just always using what you've already learned which I believe was the point the author was really trying to make.

  3. Re: Sure, but performance..   Reply   Report abuse  
Vlad - 2016-10-12 20:43:16 - In reply to message 2 from Michael Cummings
You seem just as unaware as the article author.
piotrpasich.com/spl-iterators-again ...