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

Performance improvements #58

Open
NiklasRosenstein opened this issue Jun 23, 2017 · 0 comments
Open

Performance improvements #58

NiklasRosenstein opened this issue Jun 23, 2017 · 0 comments
Assignees
Projects

Comments

@NiklasRosenstein
Copy link
Contributor

NiklasRosenstein commented Jun 23, 2017

On my Windows machine, time nppm has an average real time of little less than a second. The recently added caching in FilesystemResolver helps only marginally (around 5%). Here I collect a list of things that might be the cause to the slow start time of the nppm command (which is largely caused by the Node.py implementation).

  • Reloading pkg_resources when the Context is entered introduces around 0.100s and 0.200s
  • Many requests to the filesystem are made when resolving files (eg. upiter_directory() and FilesystemResolver.resolve())
  • Importing pip introduces around 0.350s to 0.500s (!) (we can't really avoid that though)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Node.py 2.x
  
To do
Development

No branches or pull requests

1 participant