Re: [Cython] Exception check optimization

2013-05-30 Thread Stefan Behnel
Am 30.05.2013 14:38, schrieb Nikita Nemkin: > On Thu, 30 May 2013 08:25:55 +0600, Robert Bradshaw wrote: >> On Sun, May 26, 2013 at 10:04 AM, Nikita Nemkin wrote: >>> I wonder why is __pyx_filename (in exception check blocks) >>> tracked dynamically? AFAIK it's impossible to split function >>> body

Re: [Cython] Exception check optimization

2013-05-30 Thread Nikita Nemkin
On Thu, 30 May 2013 08:25:55 +0600, Robert Bradshaw wrote: On Sun, May 26, 2013 at 10:04 AM, Nikita Nemkin wrote: Hi, I wonder why is __pyx_filename (in exception check blocks) tracked dynamically? AFAIK it's impossible to split function body between multiple files (include only works at t

Re: [Cython] Exception check optimization

2013-05-29 Thread Robert Bradshaw
On Sun, May 26, 2013 at 10:04 AM, Nikita Nemkin wrote: > Hi, > > I wonder why is __pyx_filename (in exception check blocks) > tracked dynamically? AFAIK it's impossible to split function > body between multiple files (include only works at the top level), > which makes filename a compile time cons

[Cython] Exception check optimization

2013-05-26 Thread Nikita Nemkin
Hi, I wonder why is __pyx_filename (in exception check blocks) tracked dynamically? AFAIK it's impossible to split function body between multiple files (include only works at the top level), which makes filename a compile time constant for any given function. If the above is correct, __pyx_filen