oracle / graalpython

GraalPy – A high-performance embeddable Python 3 runtime for Java
https://www.graalvm.org/python/
Other
1.24k stars 108 forks source link

Improve foreign list concat and repeat #297

Closed 2767mr closed 1 year ago

2767mr commented 1 year ago

This PR improves the performance of __ADD__ (~ -15%) and __MUL__ (~ -50%) of foreign lists.

22.3.0
Graal.testConcatLoop  avgt   10   100739481.257 ±   6567162.023  ns/op
Graal.testRepeatLoop  avgt   10  3687803989.367 ± 126218185.679  ns/op

22.3.0 + patch
Graal.testConcatLoop  avgt   10    86915832.507 ±   5023502.266  ns/op
Graal.testRepeatLoop  avgt   10  1812578621.783 ± 121703465.844  ns/op