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

[Python-Dev] Interning filenames of imported modules

[Python-Dev] Interning filenames of imported modulesCharles G Waldman cgw@fnal.gov
Wed, 10 Jan 2001 15:57:41 -0600 (CST)
I have a question about the following code in compile.c:jcompile (line 3678)

		filename = PyString_InternFromString(sc.c_filename); 
		name = PyString_InternFromString(sc.c_name);

In the case of a long-running server which constantly imports modules,
this causes the interned string dict to grow without bound.  Is there
a strong reason that the filename needs to be interned?  How about the
module name?

How about some way to enforce a limit on the size of the interned
strings dictionary?




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