diojit icon indicating copy to clipboard operation
diojit copied to clipboard

specialized object initialization

Open thautwarm opened this issue 5 years ago • 1 comments

dynjit can only specialize user defined functions and builtin functions, so that when constructing class objects, __init__ is invoked in the fixed pure python way and won't use the specialized code.

In order to solve this, after some investigation, it is now deemed safe to use

o = _PyObject_New(typeobj)
specialized_init(o, args...)
··· 

thautwarm avatar Nov 03 '20 19:11 thautwarm

It's simple in current design.

thautwarm avatar Feb 03 '21 12:02 thautwarm