Skip to content

Conversation

@rcomer
Copy link
Member

@rcomer rcomer commented Jan 16, 2026

PR summary

Inspired by #30957

The normalization is not needed here because the alias forms of the set_* methods can be called. So we can save ourselves microseconds 🚀

Before:

In [5]: %timeit line.set(lw=3, color='r', ls='--')
12.3 μs ± 116 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)

After:

In [8]: %timeit line.set(lw=3, color='r', ls='--')
10.9 μs ± 76.5 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants