Author gregory.p.smith
Recipients gregory.p.smith, nnorwitz
Date 2016-02-08.20:42:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The implementation of string interning uses a dict [1].  It would consume less memory and be a bit simpler if it used a set.

Identifier strings in a program are interned.  If you have a large program with a lot of code, this makes for a large dictionary.

Experimenting with changing this to use a set on 2.7 found ~22k savings on an interactive interpreter startup.  Measuring it on a huge application showed a few hundred k saved.

Date User Action Args
2016-02-08 20:42:46gregory.p.smithsetrecipients: + gregory.p.smith, nnorwitz
2016-02-08 20:42:46gregory.p.smithsetmessageid: <>
2016-02-08 20:42:46gregory.p.smithlinkissue26314 messages
2016-02-08 20:42:46gregory.p.smithcreate