mailRe: apply


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Edward d'Auvergne on October 26, 2006 - 18:14:
Sorry, I haven't been ignoring your responses to this thread.  I've
been having problems with the DNS servers, I never received your post
Chris at https://mail.gna.org/public/relax-devel/2006-10/msg00133.html
(Message-id: <1161682551.7703.107.camel@mrspell>) or your post Seb at
https://mail.gna.org/public/relax-devel/2006-10/msg00134.html
(Message-id: <453E1E41.7060500@xxxxxxxxx>).  I think that the DNS
servers behind the address nmr-relax.com will need to be changed.  I
might start a new post about this later.  I think my copies of these
two posts are still sitting on a dead ZoneEdit server!  I might get
them one day soon.

Edward


On 10/16/06, Chris MacRaild <c.a.macraild@xxxxxxxxxxx> wrote:
The discussions of relax performance on relax-users
https://mail.gna.org/public/relax-users/2006-10/msg00024.html reminded
me of something I noticed recently and forgot to mention here. There are
several instances in relax where the apply() built-in function is used.
According to the Python Library Reference, apply(func, args, kwds) is
exactly equivalent to the extended call syntax: func(*args, **kwds). For
this reason apply has been deprecated since Python 2.3. In some very
quick and inexhaustive tests, I found replacing apply with func(*args,
**kwds) in relax to work, and indeed to give a significant performance
improvement (perhaps as much as 20%).

So, a couple of questions:
Is there a reason for sticking with the apply syntax that I've missed?
Can we efficiently test the replacement to ensure no subtle breakages?
Edward, at some point you mentioned the idea of high-level testing based
on the extensive back-calculated data you have. How much work would be
involved in getting that going?


Chris


_______________________________________________ relax (http://nmr-relax.com)

This is the relax-devel mailing list
relax-devel@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-devel




Related Messages


Powered by MHonArc, Updated Thu Oct 26 20:01:11 2006