[mypyc] Add primitives and specialization for ord() by JukkaL · Pull Request #18240 · python/mypy

Conversation

@JukkaL

This makes a microbenchmark adapted from an internal production codebase that heavily uses ord() over 10x faster.

Work on mypyc/mypyc#644 and mypyc/mypyc#880.

@JukkaL JukkaL changed the title [mypyc] Add primitive and specializations for ord() [mypyc] Add primitives and specialization for ord()

Dec 4, 2024

svalentin

2 participants

@JukkaL @svalentin