ronan has quit [Ping timeout: 245 seconds]
ronan has joined #hpy
FFY00 has joined #hpy
krono has quit [Read error: Connection reset by peer]
krono has joined #hpy
<ronan> mattip: I did the refactoring to allocate all the arrays on the heap, but the timings are pretty bad, e.g. np.array(<list of floats>) is 2x slower
jboi has joined #hpy
jevinskie[m] has joined #hpy
ronny has joined #hpy
<ronan> the code is at https://github.com/rlamy/numpy/tree/no-stack-arrays if you want to look
<ronan> but really, the signature of descr->f->getitem and friends should change to not require an array, I'm quite sure that the stack allocation adds a fair bit of unnecessary overhead already
<mattip> can you make the object that was on the stack a singleton with
<mattip> "static PyArrayObject * dummy_object = NULL; if (dummy_object == NULL) {allocate once};"
<ronan> hmm, that would probably work, but seems about as dodgy as allocating on the stack
<ronan> it might be faster though
<ronan> mattip: it is actually a little faster than main, though probably because of a different optimisation