You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/vstinner'closed_at=<Date2014-07-22.08:06:02.206>created_at=<Date2014-07-22.07:32:08.867>labels= ['performance']
title='Use calloc in set resizing'updated_at=<Date2014-07-22.08:06:02.205>user='https://github.com/rhettinger'
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.
Activity
rhettinger commentedon Jul 22, 2014
Victor, how does this look?
vstinner commentedon Jul 22, 2014
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.
vstinner commentedon Jul 22, 2014
See also issue bpo-21644 (bytearray).