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 |
|
Nigel Tao
|
fc1b33a0ff
|
Remove redundant if in MPB__parse_number_f64
|
2020-07-03 23:47:51 +10:00 |
|
Nigel Tao
|
19b3ce24a3
|
Optimize high_prec_dec__round_just_enough
name old time/op new time/op delta
wuffs_strconv_render_number_f64_just_enough_fractions/clang5 56.4µs ± 1% 56.3µs ± 1% ~ (p=1.000 n=5+5)
wuffs_strconv_render_number_f64_just_enough_small_integers/clang5 4.12µs ± 2% 1.00µs ± 1% -75.65% (p=0.008 n=5+5)
wuffs_strconv_render_number_f64_just_enough_fractions/gcc7 54.3µs ± 0% 54.2µs ± 0% ~ (p=0.151 n=5+5)
wuffs_strconv_render_number_f64_just_enough_small_integers/gcc7 4.16µs ± 0% 1.01µs ± 0% -75.77% (p=0.000 n=4+5)
|
2020-07-03 23:44:37 +10:00 |
|
Nigel Tao
|
89ceb9fabc
|
Add wuffs_base__render_number_f64
|
2020-07-01 12:03:20 +10:00 |
|
Nigel Tao
|
04ab8868bd
|
Add some more WUFFS_BASE__MAYBE_STATIC's to base
|
2020-05-26 11:02:31 +10:00 |
|
Nigel Tao
|
43db33a345
|
Prepare to spin out base submodules
|
2020-05-25 22:44:29 +10:00 |
|