Re: [Tutor] Cython question

2011-07-03 Thread Albert-Jan Roskam
ver done for us? ~~ --- On Sat, 7/2/11, Stefan Behnel wrote: From: Stefan Behnel Subject: Re: [Tutor] Cython question To: tutor@python.org Date: Saturday, July 2, 2011, 4:52 PM Alan Gauld, 02.07.2011 15:28: > "Albert-Jan Roskam" wrote >> I used cPr

Re: [Tutor] Cython question

2011-07-02 Thread Stefan Behnel
Alan Gauld, 02.07.2011 15:28: "Albert-Jan Roskam" wrote I used cProfile to find the bottlenecks, the two Python functions getValueChar and getValueNum. These two Python functions simply call two equivalent C functions in a .dll (using ctypes). The code is currently declared as Windows-only and

Re: [Tutor] Cython question

2011-07-02 Thread Alan Gauld
"Albert-Jan Roskam" wrote I used cProfile to find the bottlenecks, the two Python functions getValueChar and getValueNum. These two Python functions simply call two equivalent C functions in a .dll (using ctypes). In that case cythin will speed up the calling loops but it can't do anythin

Re: [Tutor] Cython question

2011-07-02 Thread Albert-Jan Roskam
one for us? ~~ --- On Sat, 7/2/11, Stefan Behnel wrote: From: Stefan Behnel Subject: Re: [Tutor] Cython question To: tutor@python.org Date: Saturday, July 2, 2011, 1:29 PM Albert-Jan Roskam, 02.07.2011 11:49: > Some time ago I finished a sav re

Re: [Tutor] Cython question

2011-07-02 Thread Alan Gauld
"Albert-Jan Roskam" wrote As far as I understood it requires the functions to be re-written in a Python-like langauge, 'minus the memory manager'. Thats what I understand too, but I've only read the web docs :-) converted to C and subsequently compiled to a .dll or .so file. The original p

Re: [Tutor] Cython question

2011-07-02 Thread Stefan Behnel
Albert-Jan Roskam, 02.07.2011 11:49: Some time ago I finished a sav reader for Spss .sav data files (also with the help of some of you!): http://code.activestate.com/recipes/577650-python-reader-for-spss-sav-files/ It works fine, but it is not fast with big files. I am thinking of implementing t

[Tutor] Cython question

2011-07-02 Thread Albert-Jan Roskam
Hi, Some time ago I finished a sav reader for Spss .sav data files (also with the help of some of you!): http://code.activestate.com/recipes/577650-python-reader-for-spss-sav-files/ It works fine, but it is not fast with big files. I am thinking of implementing two of the functions in cython (g