Skip to content
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

ENH: reduce startup overhead from colormap registrations by skipping type heuristics and runtime sanity checks for builtin maps #103

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

neutrinoceros
Copy link
Collaborator

@neutrinoceros neutrinoceros commented Dec 18, 2023

This should be the last startup time optimisation.
The relative overhead of import cmasher (after numpy and Matplotlib were both imported) is down to 10% of its value in cmasher 1.6.3

…type heuristics and runtime sanity checks for builtin maps
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f0872b1) 98.67% compared to head (11118af) 99.01%.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #103      +/-   ##
==========================================
+ Coverage   98.67%   99.01%   +0.34%     
==========================================
  Files           5        6       +1     
  Lines         600      606       +6     
==========================================
+ Hits          592      600       +8     
+ Misses          8        6       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@neutrinoceros neutrinoceros merged commit b225671 into 1313e:dev Dec 18, 2023
21 checks passed
@neutrinoceros neutrinoceros deleted the speedup_load branch December 18, 2023 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant