This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dmalcolm
Recipients Fry-kun, amaury.forgeotdarc, dmalcolm, georg.brandl, hunteke, pitrou
Date 2010-10-27.20:46:32
SpamBayes Score 4.1318444e-06
Marked as misclassified No
Message-id <1288212394.46.0.334872313166.issue9942@psf.upfronthosting.co.za>
In-reply-to
Content
One possible use for this: mark the "str" buffers of PyUnicodeObject instances when demarshalling docstrings from disk; in theory these ought not to change, and can be quite large: the bulk of the memory overhead is stored in a separate allocation from the object, and thus isn't subjected to the ob_refcnt twiddling.

No idea if it's worth it though; the syscall overhead might slow down module import; also, KSM works at the level of 4K pages, and it's not clear that the allocations would line up nicely with pages.

FWIW, various related ideas here:
  http://dmalcolm.livejournal.com/4183.html
Again, no idea if these are worthwhile, this was a brainstorm on my blog, and some of the ideas would involve major surgery to CPython to implement.
History
Date User Action Args
2010-10-27 20:46:34dmalcolmsetrecipients: + dmalcolm, georg.brandl, amaury.forgeotdarc, pitrou, hunteke, Fry-kun
2010-10-27 20:46:34dmalcolmsetmessageid: <1288212394.46.0.334872313166.issue9942@psf.upfronthosting.co.za>
2010-10-27 20:46:33dmalcolmlinkissue9942 messages
2010-10-27 20:46:32dmalcolmcreate