On Wed, Dec 3, 2008 at 7:08 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> David Cournapeau wrote:
>> On Wed, Dec 3, 2008 at 5:58 PM, Robert Bradshaw wrote:
>>> Actually, the parsing takes up a significant amount of the compile time.
>>
>> Is it because the parser cannot assume there is only declarations, or
>> is parsing declarations is inherently slow ?
>
> Parsing is slow. That's why we switched to C-compiling the parser.

I understand parsing in slow in general; I was wondering why parsing
pxd is. Something like the following:

ctypedef enum:
    enum1 = 0
    ...
    enum1000 = 0

Takes a significant amount of time, which surprised me a bit. Now, "it
is slow because nobody bothered speeding it up" is a totally vaild
answer :)

>
> Only Cython can know the inter-dependencies of .pxd, .pxi and .pyx files,
> which are based on cimports and includes in the source. Look out for .dep
> files in your source directory after the generation.

I don't understand why only cython can know about it; many build tools
handle dependencies without the compiler's help, I don't see why it is
any different for cython ? I don't have .dep files, but then, I don't
use distutils either, so that may explain it.

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

Reply via email to