Skip to content

ENH: sparse.spmatrix: allow fast import #22382

@ricardoV94

Description

@ricardoV94

Is your feature request related to a problem? Please describe.

Trying to import spmatrix for dispatch registering triggers a whole load of imports.

Plotting the output of python -X importtime -c "from scipy.sparse._matrix import spmatrix" 2> import.log && python -m tuna import.log

Image

Describe the solution you'd like.

Could we have a way to import spmatrix directly without triggering everything in between?

Describe alternatives you've considered.

No response

Additional context (e.g. screenshots, GIFs)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions