robertwb / issues-import-test

0 stars 0 forks source link

cython generates horrible bint comparison code #66

Closed robertwb closed 8 years ago

robertwb commented 8 years ago

Reported by gfurnish on 2 Aug 2008 06:00 UTC 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.

Migrated-From: http://trac.cython.org/ticket/34

robertwb commented 8 years ago

Comment by robertwb on 3 Aug 2008 01:57 UTC This has been resolved by http://hg.cython.org/cython-devel/rev/e73528b0abee

robertwb commented 8 years ago

Modified by robertwb on 19 Aug 2008 04:35 UTC