Message252577
| Author | vstinner |
|---|---|
| Recipients | ethan.furman, serhiy.storchaka, vstinner |
| Date | 2015-10-09.00:50:20 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1444351825.62.0.273684816362.issue25349@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Attached patch is a work-in-progress patch to use the new private _PyBytesWriter API in bytes % args. The usage of the _PyBytesWriter API will allow further optimization. For example, it avoids the creation of a temporary bytes object to format b'%f' % 1.2. The _PyBytesWriter API allocates a small buffer of 512 bytes on the stack to delay the allocation of the final bytes objects. It can avoid the need to call _PyBytes_Resize() completly, or at least reduce the number of calls. See also the issue #25318 which added the _PyBytesWriter API. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2015-10-09 00:50:27 | vstinner | set | recipients: + vstinner, ethan.furman, serhiy.storchaka |
| 2015-10-09 00:50:25 | vstinner | set | messageid: <1444351825.62.0.273684816362.issue25349@psf.upfronthosting.co.za> |
| 2015-10-09 00:50:25 | vstinner | link | issue25349 messages |
| 2015-10-09 00:50:24 | vstinner | create | |