[Python-Dev] Comparison speed
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Mon, 21 May 2001 18:44:59 +0200
> This stuff all ties together. A pointer-equality test in string_compare() is
> guaranteed to lose every time string_compare() gets called from
> lookdict_string(). Let's lose string_compare() entirely (in favor of a
> self-contained-- apart from memcmp() --string_richcompare).
Ok. I've now updated my patch on SF to remove string_compare, inline
everything into string_richcompare, add _PyString_Eq, and use that in
lookdict_string. Who would want to review and approve/reject this
patch?
Regards,
Martin