On Oct 27, 2009, at 4:58 AM, Stefan Behnel wrote:

>
> Stefan Behnel, 27.10.2009 08:20:
>> I have working code to make this efficient:
>>
>>      cdef char* s = "...."
>>      for c in s[:100]:
>>          print c
>>
>> and, for example, this also runs as a C loop:
>>
>>      cdef char* s = "...."
>>      for i,c in enumerate(s[:100]):
>>          print i,c
>>
>> [...]
>> Any objections to add at least the char* optimisation above for 0.12?
>
> http://trac.cython.org/cython_trac/ticket/437
> http://hg.cython.org/cython-devel/rev/1c46918cef48

I'm not opposed to that.

- Robert

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to