Skip to content

[BUG]: Import speed over 9 seconds? #1375

@njsaunders

Description

@njsaunders

Question

Hi -

I've noticed that importing colour-science on my machine (An M4 mac) can take over 17 seconds - The same is occurring in AWS in Lambda with the maximum allowable memory allocation (10Gb):

In [1]: import time
   ...: start = time.perf_counter()
   ...: import colour
   ...: end = time.perf_counter()
   ...: print(f"Import time: {end - start:.6f} seconds")
/Users/neil_saunders/.virtualenvs/perf/lib/python3.13/site-packages/colour/utilities/verbose.py:322: ColourUsageWarning: "Matplotlib" related API features are not available: "No module named 'matplotlib'".
See the installation guide for more information: https://www.colour-science.org/installation-guide/
  warn(*args, **kwargs)  # noqa: B028
Import time: 17.338132 seconds

Any idea what I'm doing wrong here?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions