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 vstinner
Recipients pitrou, vstinner
Date 2014-05-02.20:51:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399063907.65.0.694619539973.issue21419@psf.upfronthosting.co.za>
In-reply-to
Content
Attached patch modifies long_lshift() to allocate the result using calloc() instead of malloc(). The goal is to avoid allocating physical memory for the least significat digits (zeros). According to my tests in issue #21233 (calloc), Linux and Windows have an optimized calloc() functions and at least Linux avoids allocating memory for pages initialized by zeros until pages at modified.
History
Date User Action Args
2014-05-02 20:51:47vstinnersetrecipients: + vstinner, pitrou
2014-05-02 20:51:47vstinnersetmessageid: <1399063907.65.0.694619539973.issue21419@psf.upfronthosting.co.za>
2014-05-02 20:51:47vstinnerlinkissue21419 messages
2014-05-02 20:51:47vstinnercreate