Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow Perfomance of foreach #222

Open
GoogleCodeExporter opened this issue Oct 15, 2015 · 0 comments
Open

Slow Perfomance of foreach #222

GoogleCodeExporter opened this issue Oct 15, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant