faster-cpython / ideas

1.67k stars 49 forks source link

Cache effects in DSL may need to be typed #494

Open gvanrossum opened 1 year ago

gvanrossum commented 1 year ago

I have spent some time playing with cache effects in our little DSL for instruction definitions.

I found that cache effects are typed, beyond the integer size -- there are cache entries of type PyObject *.

Now, right now it appears that we might get away with saying "it's an object iff the length is 8", because it appears read_u64() (and write_u64()) are not used. But that appears not very future-proof.

Thoughts? This is not yet urgent.

@markshannon