Re: [Sqlalchemy-tickets] [sqlalchemy] #2720: new C extensions for attribute accessing
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-07-31 20:01:27
|
#2720: new C extensions for attribute accessing
-----------------------------------+---------------------------------------
Reporter: zzzeek | Owner: zzzeek
Type: enhancement | Status: new
Priority: medium | Milestone: blue sky
Component: cextensions | Severity: very major - up to 2 days
Resolution: | Keywords:
Progress State: not decided upon |
-----------------------------------+---------------------------------------
Comment (by ged):
Replying to [comment:20 claudiofreire]:
> So, I finally got back to this. Pyrex has no Py3 support, so Cython's
the only choice.
>
> cprocessors.int_to_bool becomes a tad slower, going from 0.84s (py2) to
0.94s (py3) for 10M iterations. Is that in line with your previous
results?
>
> The same code with cython and py2 stays at 0.84s, so I'm wondering if
the slowness is a py3 thing instead of a cython thing.
IIRC, the offender(s) (ie too slow) was not in the type processors, but
rather in the rowproxy special methods (__getitem__ and possibly getattr).
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2720#comment:27>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|