From 314f0d0675d8fdfdab3c44afd2ce7d6af8c05a46 Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Tue, 3 Jan 2012 21:49:49 +1030 Subject: Limit significant digits in numbers.json to 14 The dtoa.c strtod() function slows down significantly when the number of digits exceeds the accuracy of a "double". JSON containing excessive digits is an unrepresentative test, limit to 14 digits. --- tests/numbers.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/numbers.json') diff --git a/tests/numbers.json b/tests/numbers.json index ef11a26..4f981ff 100644 --- a/tests/numbers.json +++ b/tests/numbers.json @@ -1,7 +1,7 @@ -[ 0.110001000000000000000001, - 0.12345678910111213141516, +[ 0.110001, + 0.12345678910111, 0.412454033640, - 2.6651441426902251886502972498731, - 2.718281828459045235360287471352, - 3.141592653589793238462643383279, - 2.14069263277926 ] + 2.6651441426902, + 2.718281828459, + 3.1415926535898, + 2.1406926327793 ] -- cgit v1.2.3-55-g6feb