thautwarm / diojit

Fully compatible CPython jit compiler. Optimising Dynamic, Interpreted, and Object-oriented(DIO) programs.
BSD 2-Clause "Simplified" License
117 stars 2 forks source link

specialising comparisons? #22

Closed thautwarm closed 3 years ago

thautwarm commented 3 years ago
if a < b:

When we know the types of a and b, how could we choose C APIs to specialise it?

thautwarm commented 3 years ago

PyObject_RichCompare