[pypy-issue] [issue1074] array creation from existing list slow
Carl Friedrich Bolz
tracker at bugs.pypy.org
Mon Feb 27 16:45:22 CET 2012
New submission from Carl Friedrich Bolz <cfbolz at gmx.de>:
Mike Müller wrote to the mailing list (
http://mail.python.org/pipermail/pypy-dev/2012-February/009483.html ):
I just tested NumPyPy a bit. I got very long run times
for some tests. After some profiling, I identified the
array constructor as the main time sink.
This is a small example that makes the point.
import cProfile
try:
import numpy
except ImportError:
import numpypy as numpy
def test():
r = range(int(1e7)) # or 1e6
numpy.array(r)
cProfile.run('test()')
The numbers are below. NumPyPy is like a factor of five
and more slower than NumPy creating an array of the same
size from an existing list.
I am just curious what the reason is and if you sees this
go away in the near future?
Thanks,
Mike
----------
messages: 4017
nosy: cfbolz, pypy-issue
priority: performance bug
status: unread
title: array creation from existing list slow
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1074>
________________________________________
More information about the pypy-issue
mailing list