classification
Title: Consider fast_double_parser for faster str->double
Type: enhancement Stage: resolved
Components: Interpreter Core Versions: Python 3.10
process
Status: closed Resolution: duplicate
Dependencies: Superseder: micro-optimization: increase our float parsing speed by Nx
View: 41310
Assigned To: Nosy List: eric.smith, mark.dickinson, pitrou, tim.peters
Priority: low Keywords:

Created on 2020-10-19 16:56 by pitrou, last changed 2020-10-19 17:20 by pitrou. This issue is now closed.

Messages (3)
msg378960 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2020-10-19 16:56
This is more of a "could be nice" entry if there are any interested core developers.

A new algorithm and library was recently published for faster parsing of double numbers.  It claims rigorous accuracy and the performance is impressive.  The implementation is in C++ but it's really decorated C.  It also seems simple enough that it can be reimplemented independently.

https://github.com/lemire/fast_double_parser/
msg378964 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2020-10-19 17:19
This was proposed in issue 41310.
msg378967 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2020-10-19 17:20
Oh, thank you.
History
Date User Action Args
2020-10-19 17:20:42pitrousetstatus: open -> closed
superseder: micro-optimization: increase our float parsing speed by Nx
resolution: duplicate
stage: resolved
2020-10-19 17:20:32pitrousetmessages: + msg378967
2020-10-19 17:19:39eric.smithsetnosy: + eric.smith
messages: + msg378964
2020-10-19 16:56:46pitroucreate