i've got a quick optimization for the arrayobject.c source.
it speeds my usage of numpy up by about 100%. i've tested with
other numpy apps and noticed a minimum of about 20% speed.
anyways, in "do_sliced_copy", change out the following block:
if (src_nd == 0 && dest_nd == 0) {
for(j=0; j
Oups, you're right... In most (all ?) systems, memcpy() is a true function, and is *not* inlined. Jim was coding in the C++ way: trusting the optimizer ! Thank you, Emmanuel
This optimization will be in the next release. Thanks!
-----Original Message-----
From: numpy-discussion-admin@lists.sourceforge.net
[mailto:numpy-discussion-admin@lists.sourceforge.net]On Behalf Of Pete
Shinners
Sent: Monday, October 02, 2000 10:58 AM
To: Numpy Discussion
Subject: [Numpy-discussion] quick optimization
i've got a quick optimization for the arrayobject.c source.
it speeds my usage of numpy up by about 100%. i've tested with
other numpy apps and noticed a minimum of about 20% speed.
anyways, in "do_sliced_copy", change out the following block:
if (src_nd == 0 && dest_nd == 0) {
for(j=0; j
participants (3)
-
Emmanuel Viennet
-
Paul F. Dubois
-
Pete Shinners