Hi Timothy,
On 11 October 2014 17:18, Timothy Baldridge wrote:
> Awesome, thanks, that's exactly what I was thinking. I'll audit my code for
> such usages and see if that helps.
An automated way to do that is to use
rpython.rlib.debug.make_sure_not_resized() on the frame's attribute.
Maybe we sh
Awesome, thanks, that's exactly what I was thinking. I'll audit my code for
such usages and see if that helps.
Timothy
On Sat, Oct 11, 2014 at 9:14 AM, Alex Gaynor wrote:
> Lists are resizable, GcArray are not. A Python "list" object will become a
> GcArray automatically if you never call a met
Lists are resizable, GcArray are not. A Python "list" object will become a
GcArray automatically if you never call a method that can resize it, such
as append. Basically for it to be a GcArray you should allocate it with
[None] * n, and then only use __setitem__ and __getitem__.
Cheers,
Alex
On S
I'm in the process of tuning my JIT, and thus far it's going pretty well.
However I can't mark the args in my Frame object a virtualizable array,
because doing so throws this exception:
[translation:info]File
"/Users/tim/Dropbox/oss/pypy/rpython/jit/metainterp/warmspot.py", line 477,
in make_v