From 50db4a47fb75f61617fd5263ed9cb9f966483fbe Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Thu, 20 Aug 2020 11:31:28 +1000 Subject: [PATCH] Inline example/jsonptr's handle_token On a mid-range x86_64 laptop, processing the 181 MiB citylots.json file from github.com/zemirco/sf-city-lots-json: $ time gen/bin/example-jsonptr < citylots.json > /dev/null Before this commit: real 0m1.911s After: real 0m1.799s Ratio: 1.06x --- example/jsonptr/jsonptr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/jsonptr/jsonptr.cc b/example/jsonptr/jsonptr.cc index 20525769..bf441499 100644 --- a/example/jsonptr/jsonptr.cc +++ b/example/jsonptr/jsonptr.cc @@ -971,7 +971,7 @@ handle_unicode_code_point(uint32_t ucp) { // ---- -const char* // +inline const char* // handle_token(wuffs_base__token t, bool start_of_token_chain) { do { int64_t vbc = t.value_base_category();