Message217787
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. |
|
Date |
User |
Action |
Args |
2014-05-02 20:51:47 | vstinner | set | recipients:
+ vstinner, pitrou |
2014-05-02 20:51:47 | vstinner | set | messageid: <1399063907.65.0.694619539973.issue21419@psf.upfronthosting.co.za> |
2014-05-02 20:51:47 | vstinner | link | issue21419 messages |
2014-05-02 20:51:47 | vstinner | create | |
|