[pypy-issue] [issue1319] PyPy 1000x slower than CPython for set.difference_update
Adam Sherwin
tracker at bugs.pypy.org
Mon Nov 12 02:58:55 CET 2012
New submission from Adam Sherwin <absherwin at gmail.com>:
Here's a small example that illustrates the problem:
aset=set(range(100000))
evens=[x for x in aset if not x%2]
for i in evens: aset.difference_update(set([i]))
This ran in 84ms in CPython 2.7.2 and 115s in PyPy 1.9.0.
Let me know if I can provide any more information or otherwise be helpful in
resolving this.
----------
messages: 4977
nosy: absherwin, pypy-issue
priority: performance bug
release: 1.9
status: unread
title: PyPy 1000x slower than CPython for set.difference_update
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1319>
________________________________________
More information about the pypy-issue
mailing list