KEMBAR78
[mypyc] Add primitives for list index() and remove() by JukkaL · Pull Request #9961 · python/mypy · GitHub
Skip to content

Conversation

@JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Jan 24, 2021

This speeds up the list_remove microbenchmark by about 30% and the
list_index microbenchmark by about 55%.

There is still room for making these faster by specializing based on item
type, for example, but since these primitives aren't used very commonly,
other optimization work seems higher priority.

@JukkaL JukkaL merged commit 91fd344 into master Jan 24, 2021
@JukkaL JukkaL deleted the list-remove branch January 24, 2021 18:55
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