Message50482
Logged In: YES
user_id=835142
Rationale: The container of interned strings logically a set. Current
implementation that uses a dictionary with the same keys and values is
clearly an artificial implementation of a set necessary in earlier versions of
Python. With a proper C implementation of sets available, it is natural to use
it to store interned strings.
Since set and dict objects use the same lookup algorithm, this patch is not
expected to affect performance and pybench does not show any difference.
Since a large set is using half of the memory of the equivalent dict, this patch
is expected to reduce interpretor memory usage. |
|
Date |
User |
Action |
Args |
2007-08-23 15:52:49 | admin | link | issue1507011 messages |
2007-08-23 15:52:49 | admin | create | |
|