Bystroushaak / tinySelf

Self-like language implemented in the RPython language toolkit.
29 stars 3 forks source link

Static cache for the slots #92

Closed Bystroushaak closed 5 years ago

Bystroushaak commented 5 years ago

Like graalvm's cache.

Remove slot dicts for objects that have < 3/5/8 slots and replace them with arrays or ideally with unrolled if loops.

Bystroushaak commented 5 years ago

I've used LightWeightDict, which speedsup the code significantly (2 gigainstructions per simple_while_benchmark's 1M while cycle).