Skip to content

Scipy package size impacts loading time #386

@xhluca

Description

@xhluca

Is there any reason why scipy takes so much space to load?

I've tried out creating a simple pyodide app that uses Scikit-learn for classification: https://alpha.iodide.io/notebooks/1836/?viewMode=report

The app takes roughly a minute and half to load. Network profiling in Chrome seems to indicate that one of the major cause is scipy.data, which takes roughly 67 MB to load (on my network, that is roughly 20 seconds to download the entire package). Here's a picture of the results:

Capture

In comparison, scikit-learn.data and numpy.data are roughly 4 MBs each. Furthermore, it seems that scipy.data cannot be cached either.

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions