Skip to content

Improve import times #419

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

Merged
merged 1 commit into from
Mar 29, 2023
Merged

Conversation

eriknw
Copy link
Member

@eriknw eriknw commented Mar 28, 2023

Import times regressed in #388. This PR fixes it.

A nice way to visualize import times is with https://github.com/nschloe/tuna

Now, as before, import times are dominated by numba and numpy.

I looked at timing for "Test Imports" Github Actions to identify what caused the regression:
https://github.com/python-graphblas/python-graphblas/actions/workflows/imports.yml

@eriknw eriknw added regression performance performance related issue labels Mar 28, 2023
@eriknw
Copy link
Member Author

eriknw commented Mar 28, 2023

For example, to use tuna:

python -X importtime -c "from graphblas import *" 2> import.log
tuna import.log

@coveralls
Copy link

Coverage Status

Coverage: 99.445% (-0.05%) from 99.491% when pulling bcd9d22 on eriknw:fix_import_time into 41fb71a on python-graphblas:main.

@eriknw eriknw merged commit 0139a83 into python-graphblas:main Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance performance related issue regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy