Commit Graph
2389 Commits
Author SHA1 Message Date
Nigel Tao f7ea462c00 Fix human-readable vmajor when out of base38 range 2020-04-10 22:44:13 +10:00
Nigel Tao 492ee61391 Add doc/note link from base38-etc.md to tokens.md 2020-04-10 22:00:04 +10:00
Nigel Tao 335819f90e Fix some doc/note/tokens.md typos 2020-04-10 21:24:43 +10:00
Nigel Tao 6612d90ca2 Re-write bit ranges in the docs 2020-04-09 22:29:45 +10:00
Nigel Tao 496e88b6c5 Remove wuffs_base__token__link_prev 2020-04-09 22:11:08 +10:00
Nigel Tao 2ef3999d6d Remove use of wuffs_base__token__link_prev 2020-04-09 17:24:39 +10:00
Nigel Tao 478d1b817c Add doc/note/tokens.md 2020-04-08 23:31:18 +10:00
Nigel Tao df3acfbb21 Clarify std/json quirk_allow_backslash_x semantics 2020-04-08 11:08:01 +10:00
Nigel Tao d83bd8d036 Add std/json quirk_allow_ascii_control_codes 2020-04-07 17:50:47 +10:00
Nigel Tao 6f67bbc4b2 Add std/json quirk_allow_backslash_new_line 2020-04-07 17:24:31 +10:00
Nigel Tao 2db72dabe5 Re-assign JSON quirk numbers 2020-04-07 17:17:54 +10:00
Nigel Tao b5d6f8d038 Have example/jsonfindptrs check unpaired keys 2020-04-06 20:57:40 +10:00
Nigel Tao 345f1aa060 Remove jsonfindptrs unnecessary curly braces 2020-04-05 22:10:37 +10:00
Nigel Tao 88a449e3d7 Add perf comment to json.decoder.decode_string 2020-04-04 11:41:09 +11:00
Nigel Tao 695a72a37c Roll back 'factor out json.decoder.decode_string'
See the previous commit for the rationale.
2020-04-04 11:32:35 +11:00
Nigel Tao 86d3b89f9a Factor out json.decoder.decode_string
This commit will soon be followed by a rollback, but it is committed
anyway so that we can refer to these numbers in the git log.

name                                    old speed     new speed     delta

wuffs_json_decode_1k/clang5             607MB/s ± 0%  543MB/s ± 1%  -10.68%  (p=0.008 n=5+5)
wuffs_json_decode_21k_formatted/clang5  330MB/s ± 2%  320MB/s ± 3%     ~     (p=0.056 n=5+5)
wuffs_json_decode_26k_compact/clang5    468MB/s ± 2%  434MB/s ± 1%   -7.26%  (p=0.008 n=5+5)
wuffs_json_decode_217k_stringy/clang5   391MB/s ± 1%  363MB/s ± 0%   -7.03%  (p=0.008 n=5+5)

wuffs_json_decode_1k/gcc7               715MB/s ± 0%  583MB/s ± 0%  -18.38%  (p=0.016 n=5+4)
wuffs_json_decode_21k_formatted/gcc7    403MB/s ± 0%  350MB/s ± 0%  -12.94%  (p=0.016 n=5+4)
wuffs_json_decode_26k_compact/gcc7      534MB/s ± 0%  420MB/s ± 1%  -21.41%  (p=0.008 n=5+5)
wuffs_json_decode_217k_stringy/gcc7     435MB/s ± 0%  359MB/s ± 0%  -17.44%  (p=0.008 n=5+5)
2020-04-04 11:32:35 +11:00
Nigel Tao 721190afff Have example C++ program check for -std=c++11 2020-04-03 22:25:21 +11:00
Nigel Tao 2db88dd98e Fix -Wshadow warnings 2020-04-03 22:13:56 +11:00
Nigel Tao 1a1f36ce13 Disable clang's -Wunreachable-code warning 2020-04-03 21:57:49 +11:00
Nigel Tao ecd3285567 Simplify a std/json while as an if 2020-04-03 12:35:18 +11:00
Nigel Tao 161fa6ae4a Ban continue in a double-curly while loop 2020-04-03 12:23:57 +11:00
Nigel Tao b791b441ef Improve error message for unreachable code 2020-04-03 10:58:04 +11:00
Nigel Tao e5c86ec191 Let an unbroken "while true" terminate a block 2020-04-03 10:46:05 +11:00
Nigel Tao 4a89913a9b Ban duplicate loop labels 2020-04-03 10:33:05 +11:00
Nigel Tao ee23f8b3d9 Move loop/jump matching from check to parse 2020-04-03 10:26:35 +11:00
Nigel Tao 94440cf6ff Rename example/json* -o flag 2020-04-02 22:28:24 +11:00
Nigel Tao 64dbd00b07 Rename wuffs_base__make_etc_buffer_{read,writ}er 2020-04-02 22:21:36 +11:00
Nigel Tao 3fe3f84106 Add double-curly blocks 2020-04-02 21:56:53 +11:00
Nigel Tao 4cfc367a9b Factor out an ast.Terminates function 2020-04-02 17:32:37 +11:00
Nigel Tao 57fe5d95f6 Re-order some token.ID numbers 2020-04-02 17:18:43 +11:00
Nigel Tao f2536b2be6 Re-format built-in method signatures' constants 2020-04-02 12:37:09 +11:00
Nigel Tao f515dc0848 Rename io_writer.write_fast_etc 2020-04-02 12:32:40 +11:00
Nigel Tao 3456f39f9d Rename token_writer.write_fast_token 2020-04-02 12:26:57 +11:00
Nigel Tao 293b3c7812 Remove unused token_writer.write_token method 2020-04-02 12:15:50 +11:00
Nigel Tao 3385efa7fd Update token debug format for extended tokens 2020-04-02 12:10:10 +11:00
Nigel Tao 462f86675d Add an "extended token" concept 2020-04-02 11:20:45 +11:00
Nigel Tao 7d684f94ae Update hello-wuffs-c/README.md for previous commit 2020-04-01 11:26:44 +11:00
Nigel Tao 1f0bf016e7 Fix hello-wuffs-c for recent language changes 2020-04-01 09:03:11 +11:00
Nigel Tao d9d022b2df Fix std/json test/bench naming convention typos 2020-03-31 22:49:19 +11:00
Nigel Tao ac8f4d0c3a Add Leo Neat to CONTRIBUTORS
"Google Inc." is already in AUTHORS.
2020-03-31 22:44:26 +11:00
Nigel Tao 9dd8002224 Merge pull request #27 from Leo-Neat/master
Add CIFuzz
2020-03-31 22:41:41 +11:00
Nigel Tao 7edf71414f Fix std/json replace_invalid_unicode copy/pasto
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21465
2020-03-31 22:37:43 +11:00
Nigel Tao e2adb87cdd Fix etc__parse_number_f64 goto-crosses-init 2020-03-31 22:28:19 +11:00
Nigel Tao 17944aae67 Optimize wuffs_base__parse_number_f64
name                                          old time/op   new time/op   delta

strconv_parse_number_f64_1_lsh53_add0/clang5    100ns ± 0%    100ns ± 1%     ~     (p=1.000 n=4+5)
strconv_parse_number_f64_1_lsh53_add1/clang5    741ns ± 1%    749ns ± 0%   +1.05%  (p=0.024 n=5+5)
strconv_parse_number_f64_pi_long/clang5         153ns ± 1%    153ns ± 0%     ~     (p=0.238 n=5+4)
strconv_parse_number_f64_pi_short/clang5       62.0ns ± 2%   45.4ns ± 3%  -26.77%  (p=0.008 n=5+5)

strconv_parse_number_f64_1_lsh53_add0/gcc7     96.6ns ± 4%   95.8ns ± 1%     ~     (p=0.794 n=5+5)
strconv_parse_number_f64_1_lsh53_add1/gcc7      757ns ± 0%    752ns ± 0%   -0.63%  (p=0.008 n=5+5)
strconv_parse_number_f64_pi_long/gcc7           151ns ± 3%    162ns ± 0%   +7.43%  (p=0.016 n=5+4)
strconv_parse_number_f64_pi_short/gcc7         55.0ns ± 0%   49.0ns ± 2%  -10.91%  (p=0.000 n=4+5)
2020-03-31 22:20:01 +11:00
Nigel Tao d587c9e4fa Add medium-precision-binary floating point impl
name                                          old time/op   new time/op   delta

strconv_parse_number_f64_1_lsh53_add0/clang5    218ns ± 1%    100ns ± 0%  -54.13%  (p=0.016 n=5+4)
strconv_parse_number_f64_1_lsh53_add1/clang5    716ns ± 2%    741ns ± 1%   +3.46%  (p=0.008 n=5+5)
strconv_parse_number_f64_pi_long/clang5         438ns ± 2%    153ns ± 1%  -65.19%  (p=0.008 n=5+5)
strconv_parse_number_f64_pi_short/clang5        174ns ± 2%     62ns ± 2%  -64.37%  (p=0.008 n=5+5)

strconv_parse_number_f64_1_lsh53_add0/gcc7      221ns ± 1%     97ns ± 4%  -56.25%  (p=0.008 n=5+5)
strconv_parse_number_f64_1_lsh53_add1/gcc7      742ns ± 1%    757ns ± 0%   +2.02%  (p=0.008 n=5+5)
strconv_parse_number_f64_pi_long/gcc7           477ns ± 1%    151ns ± 3%  -68.40%  (p=0.008 n=5+5)
strconv_parse_number_f64_pi_short/gcc7          191ns ± 1%     55ns ± 0%  -71.14%  (p=0.000 n=5+4)
2020-03-31 22:18:54 +11:00
Nigel Tao 3f0d66285f Add bench_strconv_parse_number_f64_etc 2020-03-28 11:16:06 +11:00
Nigel Tao b72dd16f9b Have test/* global variable names start with g_ 2020-03-27 17:12:38 +11:00
Nigel Tao c0bd9df978 Have script/*.c global var names start with g_ 2020-03-26 21:55:44 +11:00
Nigel Tao f909c69deb Have fuzz/* global variable names start with g_ 2020-03-26 14:49:43 +11:00
Nigel Tao d60815c93f Have example/* global variable names start with g_ 2020-03-26 14:32:35 +11:00