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

Improve import speed #126

Merged
merged 5 commits into from
Sep 17, 2021
Merged

Improve import speed #126

merged 5 commits into from
Sep 17, 2021

Conversation

akaszynski
Copy link
Member

This PR switches vtk imports to either use pyvista._vtk or vtkmodules. This results in a reduction in import time, but also permits the user to avoid including the entire vtk library when freezing the application with pyinstaller or another freezing library.

It's slightly messy because we currently allow pyvista>=0.29.0. Should we raise this to 0.29.0 in the setup.py, we can avoid adding this in.

@codecov
Copy link

codecov bot commented Sep 12, 2021

Codecov Report

Merging #126 (4727e0d) into main (459af35) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #126   +/-   ##
=======================================
  Coverage   98.43%   98.44%           
=======================================
  Files           8        8           
  Lines         641      644    +3     
=======================================
+ Hits          631      634    +3     
  Misses         10       10           

@akaszynski
Copy link
Member Author

Pinging @larsoner (I know you're busy).

Copy link
Contributor

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

pyvistaqt/editor.py Outdated Show resolved Hide resolved
pyvistaqt/plotting.py Outdated Show resolved Hide resolved
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
@akaszynski akaszynski merged commit e66e11a into main Sep 17, 2021
@akaszynski akaszynski deleted the feat/improve_import_speed branch September 17, 2021 19:55
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.

None yet

2 participants