Skip to content

Conversation

@JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Sep 1, 2025

Specialize "not" for common primitive types, optional types and native instance types.

Also specialize variable-length tuple in a boolean context (while working on "not" I noticed that this wasn't specialized).

This appears to speed up self check by 0.7%, but this is only barely above the noise floor.

@JukkaL JukkaL merged commit 23965ab into master Sep 1, 2025
13 checks passed
@JukkaL JukkaL deleted the mypyc-not branch September 1, 2025 14:46
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.

3 participants