josh-techindeed / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

Slow Perfomance of foreach #222

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Read in a HTML file
2. Parse many items (e.g. 2000 items) in a foreach loop
3. print out the text

With phpQuery it tooks about 6-7 seconds.

preg_match-all does it in under 1 second.

Is there any way to speed up foreach loop?

What version of the product are you using? On what operating system?

phpquery 0.9.5 / MAC OS X 10.7
running local on XAMPP PHP 5.3

Original issue reported on code.google.com by progel...@gmx.de on 28 Nov 2012 at 4:27