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/2002-July/026421.html below:

[Python-Dev] Alternative implementation of interning, take 2

[Python-Dev] Alternative implementation of interning, take 2 [Python-Dev] Alternative implementation of interning, take 2Tim Peters tim.one@comcast.net
Fri, 12 Jul 2002 17:33:18 -0400
[MAL]
> Sure, but SetItemString() does some extra magic: it interns the
> key for me.

As a directly interned string.  Indirect interning is irrelevant to this
benefit.

Don't argue about this, run the patched code <wink>:  it will tell you
directly whether ii is doing you any good.

> ...
> I only use PyString_InternInPlace() on strings which will be
> used as dict keys or for string compares in tokenizers and
> parsers.

Again it doesn't really matter when you call it; if the indirect interning
optimization is doing you any good, it will be because of stuff Python is
doing under the covers.





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