Title: Support for interned strings in marshal
Type: Stage:
Components: Interpreter Core Versions:
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: loewis
Priority: normal Keywords: patch

Created on 2004-03-25 13:25 by loewis, last changed 2004-06-27 16:52 by loewis. This issue is now closed.

File name Uploaded Description Edit
marshal.diff loewis, 2004-03-25 13:25
Messages (2)
msg45665 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-03-25 13:25
This patch performs string sharing in marshal for interned strings. 
On marshalling, TYPE_INTERNED is generated for the first 
occurrence of an interned strings, and TYPE_STRINGREF for a later 
occurrence. On unmarshalling, TYPE_INTERNED strings are interned 
on unmarshalling.

During marshalling, a dictionary is created to track the strings; on 
unmarshalling, a list.
msg45666 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-06-27 16:52
Logged In: YES 

Committed, with modifications, as

utilities.tex 1.14
libmarshal.tex 1.24
marshal.h 2.14
NEWS 1.1011
import.c 2.233
marshal.c 1.79
Date User Action Args
2004-03-25 13:25:09loewiscreate