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/026093.html below:

[Python-Dev] Alternative implementation of string interning

[Python-Dev] Alternative implementation of string interning [Python-Dev] Alternative implementation of string interningTim Peters tim.one@comcast.net
Mon, 01 Jul 2002 21:23:15 -0400
[Gordon, on extension modules implicitly relying on indirect interning]
> I bet most extension authors have been completely
> ignorant of it, which makes the answer "most of
> them" <wink>.

Could be!  I don't know how much of a speed boost they get, though.  While
the magical interning is done for PyObject_SetAttr(), it's not done for the
has-to-be-more-frequently-called PyObject_GetAttr(), as people call that
with all sorts of garbage strings.  For some reason interning is done for
PyObject_GetAttrString(), although the caller of that can't profit from
indirect interning (it takes a char*, not a PyObject*).

Like I said, maybe this all makes sense to Guido <0.9 wink>.

at-least-we're-not-fighting-over-what-the-comments-mean-ly y'rs  - tim





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