Re: [pypy-dev] Spurious dict lookups in my JIT loops

2011-09-17 Thread Boris
It's a little long for that, I was hoping people would request what is relevant. Here's some pertinent snippets (again, this is all an experiment, so it is not pretty). jitdriver = JitDriver(greens=['pc', 'method'], reds=['self'], virtualizables=['self']

Re: [pypy-dev] Spurious dict lookups in my JIT loops

2011-09-17 Thread Benjamin Peterson
This would probably be easier if you showed us the code. 2011/9/17 Boris : > Hi, > > I've been trying out writing my own interpreter using the PyPy framework > recently, as a bit of fun. I've been trying to get the JIT to optimize a > trivial loop down to the minimal amount of operations. With jud

[pypy-dev] Spurious dict lookups in my JIT loops

2011-09-17 Thread Boris
Hi, I've been trying out writing my own interpreter using the PyPy framework recently, as a bit of fun. I've been trying to get the JIT to optimize a trivial loop down to the minimal amount of operations. With judicious use of `_immutable_fields_` and `_virtualizable2_`, I've got pretty close. Bu