[PATCH] keyword: prefer i in d over d.has_key(i)
Dirkjan Ochtman
dirkjan at ochtman.nl
Sun Jan 20 07:51:24 CST 2008
TK Soh wrote:
> Just curious. Is 'in' more efficient than haskey()?
Yes, it should be. Mostly because method calls are relatively expensive,
I think.
Cheers,
Dirkjan
More information about the Mercurial-devel
mailing list