Nigel Tao
53da68fe4b
Refine parse_number_f64's powers_of_10 table
Refine means changing the base-10 exponents from "-348 ..= +340 stepping
by 8" to "-326 ..= +310 stepping by 1".
Binary size, before:
15992 gen/lib/c/clang-5.0-dynamic/wuffs-base-f64conv.lo
16232 gen/lib/c/clang-5.0-static/wuffs-base-f64conv.o
17384 gen/lib/c/gcc-dynamic/wuffs-base-f64conv.lo
17384 gen/lib/c/gcc-static/wuffs-base-f64conv.o
After:
22232 gen/lib/c/clang-5.0-dynamic/wuffs-base-f64conv.lo
22408 gen/lib/c/clang-5.0-static/wuffs-base-f64conv.o
23816 gen/lib/c/gcc-dynamic/wuffs-base-f64conv.lo
23816 gen/lib/c/gcc-static/wuffs-base-f64conv.o
$ g++ -O3 script/process-json-numbers.c
$ time ./a.out -parse-number-f64 < citylots.json
Before/After:
real 0m1.455s
real 0m1.432s
citylots.json is from github.com/zemirco/sf-city-lots-json
2020-07-05 13:58:49 +10:00
..
2019-10-20 14:21:09 +11:00
2019-10-20 14:26:25 +11:00
2019-10-20 14:06:04 +11:00
2019-10-20 12:10:09 +11:00
2019-10-16 15:56:11 +11:00
2020-03-26 21:55:44 +11:00
2020-03-12 16:47:26 +11:00
2020-03-26 21:55:44 +11:00
2019-09-29 17:20:14 +10:00
2019-02-24 11:44:22 +11:00
2017-11-30 16:37:20 +11:00
2020-01-16 12:32:38 +11:00
2018-11-04 20:38:04 +11:00
2020-01-24 10:01:43 +11:00
2017-12-04 10:43:32 +11:00
2018-10-21 11:46:37 +11:00
2018-05-24 10:33:02 +10:00
2018-03-16 10:48:33 +11:00
2019-10-14 09:28:28 +11:00
2020-02-26 09:40:30 +11:00
2020-02-05 17:22:09 +11:00
2017-11-30 16:37:20 +11:00
2019-10-26 08:09:18 +11:00
2018-11-17 08:29:48 +11:00
2018-11-11 10:25:19 +11:00
2019-10-14 09:21:29 +11:00
2018-12-01 10:26:09 +11:00
2020-02-25 16:05:38 +11:00
2020-03-31 22:18:54 +11:00
2020-04-10 22:44:13 +10:00
2020-03-31 22:18:54 +11:00
2019-12-11 16:07:23 +11:00
2020-07-05 13:58:49 +10:00
2020-07-03 23:44:37 +10:00
2020-07-03 12:48:37 +10:00
2019-08-24 09:34:12 +10:00
2020-02-24 09:45:05 +11:00
2020-02-26 09:40:30 +11:00