1 Feb 16:02
Re: [Cython] Some more optimisations
Stefan Behnel wrote: > Hi, > > Martin C. Martin wrote: >> Stefan Behnel wrote: >> >>> One thing I'm not sure about is how to propagate undeclared function >>> result >>> types. If we can figure out what type a function has, we can use that >>> type. >>> But the function might be declared later in the code, so we wouldn't >>> have that >>> information early enough. I think that's where two passed are required. >> I think you're absolutely right, and that's the standard answer to this. > > Now that I give it another thought, there's one very ugly thing to deal with. > Imagine this: > > cdef f1(a): > d = f2(a) > d[1] = 1 > return d > > cdef f2(a): > d = f3(a) > d[2] = 2 > return d > > cdef f3(a):(Continue reading)
RSS Feed