weave and Numeric vs. weave and numpy
Hello, I have a program using Numeric and weave developed with Python2.3. I just switched to Python2.4 and numpy. The Numeric/weave version is almost a factor of 2 faster compared to numpy/weave. Is that what is to be expected or are there options to improve the speed of numpy/weave? I would be very appreciative for any help. Please find the source attached. Regards Rolf -- ------------------------------------ # Dr. Rolf Wester # Fraunhofer Institut f. Lasertechnik # Steinbachstrasse 15, D-52074 Aachen, Germany. # Tel: + 49 (0) 241 8906 401, Fax: +49 (0) 241 8906 121 # EMail: rolf.wester@ilt.fraunhofer.de # WWW: http://www.ilt.fraunhofer.de
A factor of 2! Is that short for a factor of **2?
On 7/27/06, Rolf Wester
Hello,
I have a program using Numeric and weave developed with Python2.3. I just switched to Python2.4 and numpy. The Numeric/weave version is almost a factor of 2 faster compared to numpy/weave. Is that what is to be expected or are there options to improve the speed of numpy/weave? I would be very appreciative for any help. Please find the source attached.
Regards
Rolf
-- ------------------------------------ # Dr. Rolf Wester # Fraunhofer Institut f. Lasertechnik # Steinbachstrasse 15, D-52074 Aachen, Germany. # Tel: + 49 (0) 241 8906 401, Fax: +49 (0) 241 8906 121 # EMail: rolf.wester@ilt.fraunhofer.de # WWW: http://www.ilt.fraunhofer.de
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
-- David Grant
David Grant wrote:
A factor of 2! Is that short for a factor of **2?
That means Numeric/weave takes about 17 s (on my PC), and the numby/weave version takes about 32 s. -- ------------------------------------ # Dr. Rolf Wester # Fraunhofer Institut f. Lasertechnik # Steinbachstrasse 15, D-52074 Aachen, Germany. # Tel: + 49 (0) 241 8906 401, Fax: +49 (0) 241 8906 121 # EMail: rolf.wester@ilt.fraunhofer.de # WWW: http://www.ilt.fraunhofer.de
Rolf Wester wrote:
David Grant wrote:
A factor of 2! Is that short for a factor of **2?
That means Numeric/weave takes about 17 s (on my PC), and the numby/weave version takes about 32 s.
Please show your code. There are several factors that have changed here. For example, Python 2.4 is different that Python 2.3. There are only a few usages when Numeric is faster than NumPy and in most of these using regular Python lists is faster than Numeric and NumPy anyway. Nonetheless, there are still improvements that can be made to NumPy. Which version of NumPy are you using? -Travis
participants (3)
-
David Grant
-
Rolf Wester
-
Travis Oliphant