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

Slow import #569

Open
fzimmermann89 opened this issue Nov 30, 2024 · 2 comments
Open

Slow import #569

fzimmermann89 opened this issue Nov 30, 2024 · 2 comments

Comments

@fzimmermann89
Copy link
Member

Importing mrpro takes on my (slow) work machine ~4s.

some heavy-hitters according to python -X importtime -c "import mrpro" are

  • pypulseq -> time python -c "import pypulseq" -> 2.9s
  • torch -> 1s
  • pydicom -> 0.3 s
  • ismrmrd -> 0.2 s

moving pypulseq import to a function scoped import in the pulseq trajectory reduces the import time to 1.4s

@fzimmermann89
Copy link
Member Author

...maybe this is alos something to fix in pypulseq? @schuenke

@fzimmermann89
Copy link
Member Author

Updating pypulseq to current GitHub version reduces the issue to ~ 2.5s.

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

No branches or pull requests

1 participant