Re: [Cython] About IndexNode and unicode[index]

2013-02-28 Thread ZS
2013/3/1 Stefan Behnel : > ZS, 28.02.2013 21:07: >> 2013/2/28 Stefan Behnel: >>>> This allows to write unicode text parsing code almost at C speed >>>> mostly in python (+ .pxd defintions). >>> >>> I suggest simply adding a constant flag a

Re: [Cython] About IndexNode and unicode[index]

2013-02-28 Thread ZS
2013/3/1 Stefan Behnel : > ZS, 28.02.2013 21:07: >> 2013/2/28 Stefan Behnel: >>>> This allows to write unicode text parsing code almost at C speed >>>> mostly in python (+ .pxd defintions). >>> >>> I suggest simply adding a constant flag a

Re: [Cython] About IndexNode and unicode[index]

2013-02-28 Thread ZS
2013/2/28 Stefan Behnel : >> This allows to write unicode text parsing code almost at C speed >> mostly in python (+ .pxd defintions). > > I suggest simply adding a constant flag argument to the existing function > that states if checking should be done or not. Inlining will let the C > compiler dr

Re: [Cython] About IndexNode and unicode[index]

2013-02-28 Thread ZS
2013/2/28 ZS : > Looking into IndexNode class in ExprNode.py I have seen a possibility > for addition of more fast code path for unicode[index] as it done in > method `generate_setitem_code` in case of lists. > > This is files for evaluation of performance difference: > >

[Cython] About IndexNode and unicode[index]

2013-02-28 Thread ZS
Looking into IndexNode class in ExprNode.py I have seen a possibility for addition of more fast code path for unicode[index] as it done in method `generate_setitem_code` in case of lists. This is files for evaluation of performance difference: unicode_index.h /* This is striped version of

[Cython] To Add datetime.pxd to cython.cpython

2013-02-21 Thread ZS
>These macros allow to create dattime/time objects with tzinfo. >Of course we could do: > >t = PyTime_FromTime() >t = t.replace(tzinfo) Sorry last line has to be: t = t.replace(tzinfo=tzinfo) Zaur Shibzukhov ___ cython-devel mailing