Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[MNT]: Deferred colormap creation #30578

Open
@timhoffm

Description

@timhoffm

Summary

All colormaps are currently created at import-time. Additionally, Colormap classes have a deferred initialization of their lookup table (I suspect to save memory/initialization cost).

This design is sub-optimal as we still pay some up-front cost for creating all the colormaps whereas a typical use case would only use a few at most.

Proposed fix

ChangeColormapRegistry so that it only creates requested colormaps on demand (and caches them once they are there). - Probably we still need some sort of ColormapSpec as internal placeholders in ColormapRegistry so that it knows which colormaps are available without haveing to create all.

We can then remove the deferred initialization on Colormap, which makes that class much simpler.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp