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

Make traverser return a new instance for each file #107

Merged
merged 2 commits into from
Sep 30, 2017

Conversation

theofidry
Copy link
Member

@theofidry theofidry commented Sep 30, 2017

As the traverser is now statefull, even though it won't break things
as the code is robust enough right now, it severely impacts performances.

For example, the collection of namespace was kept which led to a lot of
namespaces at some point forcing the NamespaceCollection to go through
the node parents to find the proper namespace, even though only one
namespace was found in the file.

Théo FIDRY added 2 commits September 30, 2017 09:19
As the traverser is now stateful, even though it won't break things
as the code is robust enough right now, it severely impacts performances.

For example, the collection of namespace was kept which led to a lot of
namespaces at some point forcing the NamespaceCollection to go through
the node parents to find the proper namespace, even though only one
namespace was found in the file.
@theofidry theofidry force-pushed the bugfix/reset-traverser branch from 31b4167 to c5fb376 Compare September 30, 2017 08:19
@theofidry theofidry merged commit 31f994e into humbug:master Sep 30, 2017
@theofidry theofidry deleted the bugfix/reset-traverser branch September 30, 2017 10:25
@theofidry theofidry mentioned this pull request Sep 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant