aboutsummaryrefslogtreecommitdiff
path: root/tests/numbers.json (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Limit significant digits in numbers.json to 14Mark Pulford2012-03-041-6/+6
| | | | | | 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.
* Add support for runtime number precision configMark Pulford2011-05-291-0/+7
Add cjson.encode_number_precision(). Reducing the number precision from 14 to 3 can increase performance up to 50% with number heavy conversions.