New issue 2426: copy.copy performance regression
https://bitbucket.org/pypy/pypy/issues/2426/copycopy-performance-regression
Maciej Fijalkowski:
This code is ~2x slower on new pypy than on 4.0.1 (when run with 1000000).
Possibly changes to how maps work?
```
#!python
import copy, sys
class A(object):
def __init__(self, a, b, c):
self.a = a
self.b = b
self.c = c
self.d = a
self.e = b
a = [A(1, 2, 3), A(4, 5, 6), A(6, 7, 8)]
def f():
for i in range(int(sys.argv[1])):
copy.copy(a[i % 3])
f()
```
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue