Message270339
| Author |
serhiy.storchaka |
| Recipients |
Demur Rumed, eric.smith, mjpieters, serhiy.storchaka, ztane |
| Date |
2016年07月13日.20:11:36 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1468440697.46.0.259874161174.issue27078@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Proposed patch adds the BUILD_STRING opcode and speeds up PyObject_Format() in common cases. It makes f-strings the fastest method for simple formatting.
$ ./python -m timeit -s "x = 2" -- 'f"X is {x}"'
1000000 loops, best of 3: 0.347 usec per loop |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年07月13日 20:11:40 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, mjpieters, eric.smith, ztane, Demur Rumed |
| 2016年07月13日 20:11:37 | serhiy.storchaka | set | messageid: <1468440697.46.0.259874161174.issue27078@psf.upfronthosting.co.za> |
| 2016年07月13日 20:11:37 | serhiy.storchaka | link | issue27078 messages |
| 2016年07月13日 20:11:37 | serhiy.storchaka | create |
|