[New-bugs-announce] [issue27818] Speed up number format spec parsing

Stefan Behnel report at bugs.python.org
Sat Aug 20 15:43:26 EDT 2016


New submission from Stefan Behnel:

I noticed that quite some time during number formatting is spent parsing the format spec. The attached patch speeds up float formatting by 5-15% and integer formatting by 20-30% for me overall when using f-strings (Ubuntu 16.04, 64bit).

----------
components: Interpreter Core
files: faster_format.patch
keywords: patch
messages: 273243
nosy: scoder
priority: normal
severity: normal
status: open
title: Speed up number format spec parsing
type: performance
versions: Python 3.6
Added file: http://bugs.python.org/file44173/faster_format.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27818>
_______________________________________


More information about the New-bugs-announce mailing list