Message217787
| 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: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 |
|