Skip to content

Slow Perfomance of foreach #222

Open

Description

@GoogleCodeExporter
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 [email protected] 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions