Carl Friedrich Bolz-Tereick pushed to branch branch/default at PyPy / pypy


Commits:
0a731bae by Carl Friedrich Bolz-Tereick at 2021-05-29T22:17:06+02:00
(cfbolz, twitch): do things slightly differently: check if adjacent elements
have the same value and if yes, share the boxes. this fixes the original
reporters bug, where the code does something like this:

l = [0] * N
l[0] = 1
...
l[n] = <long>

- - - - -


2 changed files:

- pypy/objspace/std/listobject.py
- pypy/objspace/std/test/test_listobject.py


View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/0a731baeda049a16441e508387ac128d6817135f

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/0a731baeda049a16441e508387ac128d6817135f
You're receiving this email because of your account on foss.heptapod.net.


_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to