[issue22030] Use calloc in set resizing

2014-07-22 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22030] Use calloc in set resizing

2014-07-22 Thread STINNER Victor
STINNER Victor added the comment: See also issue #21644 (bytearray). -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue22030] Use calloc in set resizing

2014-07-22 Thread STINNER Victor
STINNER Victor added the comment: Be careful. In my tests, calloc() was slower than malloc() + memset() for memory blocks smaller than 1 MB. Calloc() can be interesting if only a few pages (4096 bytes) are modified. You must provide benchmarks. -- __

[issue22030] Use calloc in set resizing

2014-07-22 Thread Raymond Hettinger
New submission from Raymond Hettinger: Victor, how does this look? -- assignee: haypo files: set_calloc.diff keywords: patch messages: 223638 nosy: haypo, rhettinger priority: normal severity: normal stage: patch review status: open title: Use calloc in set resizing type: performance ver