Ticket #34 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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

Changed 5 years ago by robertwb

  • status changed from new to closed
  • resolution set to fixed

Changed 5 years ago by robertwb

  • milestone set to 0.9.8.1
Note: See TracTickets for help on using tickets.