On Wed, Nov 16, 2011 at 8:24 PM, William ML Leslie <
william.leslie....@gmail.com> wrote:

> Ack.
>
> On 17 November 2011 12:23, William ML Leslie
> <william.leslie....@gmail.com> wrote:
> > On 17 November 2011 12:13, Elefterios Stamatogiannakis <est...@gmail.com>
> wrote:
> >> Pypy seems to not jit at all when a (pypy) Python function is called
> from C.
> >
> > Calls to native functions must be residualised, as there is no way to
> > tell what state gives rise to the call to the UDF.
> >
> > If there was a loop inside the UDF, that would still be compiled.  But
> > the loop that occurs in the query must just call the C function in the
> > usual way, as the JIT has no idea what it might do.
>
> --
> William Leslie
> _______________________________________________
> pypy-dev mailing list
> pypy-dev@python.org
> http://mail.python.org/mailman/listinfo/pypy-dev
>

The JIT compiles functions without loops too now, so this should be jitted.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to