A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-May/014929.html below:

[Python-Dev] Comparison speed

[Python-Dev] Comparison speed [Python-Dev] Comparison speedTim Peters tim.one@home.com
Sun, 20 May 2001 17:13:04 -0400
[Martin v. Loewis, on pointer-equality tests in string_compare()]

> I've done some measurements here, too, again taking your example
> ...
>     for i in indices:
>         "ab" < "ab"
> ...
> This is the case where testing for identity helps. Running it without
> identity test takes 0.74s, running it with identity test takes 0.68s.

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).




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4