2013/10/31 KaShining <mail2sh...@qq.com> > Tks! > > but > > >>>>>>>>>>>>>>> > This is a typical example of a program that will be > incredibly slower on PyPy if used as a C extension module (via > cpyext). > >>>>>>>>>>>>>>> > > why? >
See this blog post: http://morepypy.blogspot.ch/2011/05/numpy-follow-up.html specially the paragraph starting with "cpyext is slow" > > > ------------------ Original ------------------ > *From: * "Armin Rigo";<ar...@tunes.org>; > *Date: * Thu, Oct 31, 2013 04:53 PM > *To: * "KaShining"<mail2sh...@qq.com>; ** > *Cc: * "pypy-dev"<pypy-dev@python.org>; ** > *Subject: * Re: [pypy-dev] pip install rbtree fail in pypy env! > > Hi KaShining, > > On Thu, Oct 31, 2013 at 9:32 AM, KaShining <mail2sh...@qq.com> wrote: > > src/rbtree.c: In function '__pyx_f_6rbtree_6rbtree_byOffset': > > This is using Cython. Compiling Cython modules with PyPy > kind-of-works but is shaky. You may have more luck if you upgrade > Cython to the latest version, but I don't know the details myself. > > Note that according to the name "rbtree", it's about a data structure > that --- I guess --- is meant to contain tons of references to Python > objects. This is a typical example of a program that will be > incredibly slower on PyPy if used as a C extension module (via > cpyext). You'd get much better results by running a pure Python > version of it. Check "rbtree" to see if it already has a pure Python > version. > > > A bientôt, > > Armin. > > _______________________________________________ > pypy-dev mailing list > pypy-dev@python.org > https://mail.python.org/mailman/listinfo/pypy-dev > > -- Amaury Forgeot d'Arc
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev