)]}'
{
  "commit": "18c1d73c0b7543887393a5ae232d96fd4e6e00ff",
  "tree": "90f5760831b947c6e9b919ef6bed40a2f8bf32a6",
  "parents": [
    "d6afc91d64c9737e8af1a330c2cbd7a2ac2f5a32"
  ],
  "author": {
    "name": "Ryan Harrison",
    "email": "rharrison@chromium.org",
    "time": "Tue Sep 22 15:00:15 2026 -0700"
  },
  "committer": {
    "name": "dawn-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "dawn-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Tue Sep 22 15:00:15 2026 -0700"
  },
  "message": "[tint] Implement some lexer optimizations\n\nTwo specific optimizations are added in this CL:\n1. Cache\u0027ing the current line state instead of fetching it with every\n   call to line(), since it only changes on construction and when\n   advance_line() is called.\n2. Changing the if-elif chain in try_punctiation in a switch-case, so\n   that instead of iterating through all 30-ish cases the code can\n   just jump straight to the correct case. (This cannot be trivially\n   done for parse_keyword, since it works on full strings instead of\n   single chars.)\n\nThis improves runtime for the reference test, relative to baseline\nanother 10% to 20%.\n\nFixes: 563083232\nChange-Id: I6b2b03e912f04739796a843500932d0ea977093e\nReviewed-on: https://dawn-review.googlesource.com/c/dawn/+/344375\nCommit-Queue: dan sinclair \u003cdsinclair@chromium.org\u003e\nAuto-Submit: Ryan Harrison \u003crharrison@chromium.org\u003e\nCommit-Queue: Ryan Harrison \u003crharrison@chromium.org\u003e\nReviewed-by: dan sinclair \u003cdsinclair@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "07e2e41740c765c6434943443cbd2ae786a70273",
      "old_mode": 33188,
      "old_path": "src/tint/lang/wgsl/reader/parser/lexer.cc",
      "new_id": "0798410f6bda8a82cbdb702b63827ee7ec5373eb",
      "new_mode": 33188,
      "new_path": "src/tint/lang/wgsl/reader/parser/lexer.cc"
    },
    {
      "type": "modify",
      "old_id": "411668d4a9fc0ccbd8fcaee09f8347a36e418ea4",
      "old_mode": 33188,
      "old_path": "src/tint/lang/wgsl/reader/parser/lexer.h",
      "new_id": "a39f2bc2878e6f29b61ee071e9266ab12f36902f",
      "new_mode": 33188,
      "new_path": "src/tint/lang/wgsl/reader/parser/lexer.h"
    }
  ]
}
