United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8024356 : Double.parseDouble() is slow for long Strings

Details
Type:
Bug
Submit Date:
2013-09-05
Status:
Closed
Updated Date:
2016-10-07
Project Name:
JDK
Resolved Date:
2013-09-17
Component:
core-libs
OS:
Sub-Component:
java.lang
CPU:
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0u51,6u51,7u25
Fixed Versions:
7u60 (b01)

Related Reports
Relates:

Sub Tasks

Description
Parsing strings such as "1.1111111...." appears to behave approximately as O(n^2). Significant performance degradation does not however occur until the hundreds of thousands of digits
                                    

Comments
Formal proof of correctness: http://cr.openjdk.java.net/~bpb/nDigits/.
                                     
2016-10-07



Hardware and Software, Engineered to Work Together