[Python-Dev] Comparison speed (original) (raw)

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 stringcompare() is guaranteed to lose every time stringcompare() gets called from lookdictstring(). Let's lose stringcompare() entirely (in favor of a self-contained-- apart from memcmp() --stringrichcompare).

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