Ticket #34 (closed defect: fixed)
cython generates horrible bint comparison code
| Reported by: | gfurnish | Owned by: | somebody |
|---|---|---|---|
| Priority: | critical | Milestone: | 0.9.8.1 |
| Component: | Optimization | Keywords: | |
| Cc: |
Description
Consider:
cdef bint foo if foo == True:
This generates a raw rich compare
cdef bint foo if foo==1:
This generates a C if statement. This minor problem causes a massive performance loss in inner loops.
Change History
Note: See
TracTickets for help on using
tickets.
