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

Increase the performance of the transform algorithm #34

Open
jloehel opened this issue Jul 16, 2018 · 1 comment
Open

Increase the performance of the transform algorithm #34

jloehel opened this issue Jul 16, 2018 · 1 comment
Labels
enhancement New feature or request major

Comments

@jloehel
Copy link
Collaborator

jloehel commented Jul 16, 2018

The transform algorithm is really, really slow. Find a way to increase the performance of the algorithm.

@jloehel jloehel added major enhancement New feature or request labels Jul 20, 2018
@tomschr
Copy link
Contributor

tomschr commented Jul 23, 2018

Some ideas:

  • Avoid the .xpath() function as it returns a list. Try to use .iter() or .iterfind()
  • Avoid using //ELEMENT XPaths as it searches the whole tree from top to bottom. It's probably more efficient to use .iter()
  • Use the cProfile module, for example: python3 -m cProfile rng2doc ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request major
Projects
None yet
Development

No branches or pull requests

2 participants