Re: [Sqlalchemy-tickets] [sqlalchemy] #2720: new C extensions for attribute accessing
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-05-08 15:21:18
|
#2720: new C extensions for attribute accessing
-----------------------------------+---------------------------------------
Reporter: zzzeek | Owner: zzzeek
Type: enhancement | Status: new
Priority: medium | Milestone: 0.9.0
Component: cextensions | Severity: very major - up to 2 days
Resolution: | Keywords:
Progress State: not decided upon |
-----------------------------------+---------------------------------------
Comment (by claudiofreire):
Well, it certainly is tricky to get optimal performance, but I've never
failed achieving C speeds with Pyrex. I know Cython tries to do type
inference to speed up things, in Pyrex you have to annotate types. I've
found explicit annotation is more predictable than relying on type
inference, that's why I prefer Pyrex. I just need careful cdefs and
everything flies.
When there is a need for native C code, you can always include C code from
Pyrex. I've in fact done that to include C++ code, when C++'s template
power was required. The benefit over pure C extensions is that you avoid
all that CPython boilerplate.
So it's a matter of how much needs to be pure C and how much can Pyrex
replace, I don't think it will make a difference in speed (ie: it will be
just as fast).
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2720#comment:19>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|