[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

    import numpy
except ImportError:
    import numpypy as numpy

def test():
    r = range(int(1e7)) # or 1e6


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?


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>

More information about the pypy-issue mailing list