[MERGE] is_ignored improvements...

Robert Collins robertc at robertcollins.net
Mon May 22 00:41:04 BST 2006


On Sat, 2006-05-20 at 09:35 -0500, John A Meinel wrote:
....
> So it would seem that the regex implementation is fairly good, even if
> it isn't perfect.

Andrew shed some light on this for me in a different conversation
recently. 'function calls are slow' in python actually means 'setting up
a python frame takes for fucking ever', and 'c method calls are really
really fast'.

So you can actually win if your inner loop of called methods is *c*
methods (like stringobject.replace) rather than python methods (like
'string.replace') simply by avoiding the python frame setup. (Searching
for methods on old style objects is also a factor).

Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060522/e665b822/attachment.pgp 


More information about the bazaar mailing list