)]}'
{
  "commit": "ec938ddaa276646eb8f1ab33e160c156011d8217",
  "tree": "2c8ce7a06ad36e2794ed513bd3d47cd3ab852bad",
  "parents": [
    "d6131075f75ba4e7ae1ba62a5f4a57eb7f6122ba"
  ],
  "author": {
    "name": "David \u0027Digit\u0027 Turner",
    "email": "digit@google.com",
    "time": "Tue Mar 31 10:27:10 2020 +0200"
  },
  "committer": {
    "name": "Commit Bot",
    "email": "commit-bot@chromium.org",
    "time": "Tue Apr 07 15:28:42 2020 +0000"
  },
  "message": "Speed up label comparison\n\nThe Label::operator\u003c function appears high in the profile of \"gn gen\"\nfor the Chromium and Fuchsia build, so this CL optimizes its\nimplementation by using the fact that StringAtom and SourceDir are\nboth unique/interned string pointer values, with very fast equality\ncomparison.\n\nThis saves about 1s from the Fuchsia \u0027gn gen\u0027 step.\n\nMeasurements:\n\n/work/chromium0/src$ repeat_cmd 5 /tmp/gn-master gen --check out/Release\nDone. Made 13413 targets from 2220 files in 6620ms\nDone. Made 13413 targets from 2220 files in 6552ms\nDone. Made 13413 targets from 2220 files in 6450ms\nDone. Made 13413 targets from 2220 files in 6532ms\nDone. Made 13413 targets from 2220 files in 6346ms (best)\n\n/work/chromium0/src$ repeat_cmd 5 /tmp/gn-fast-label gen --check out/Release\nDone. Made 13413 targets from 2220 files in 6785ms\nDone. Made 13413 targets from 2220 files in 6369ms\nDone. Made 13413 targets from 2220 files in 6285ms (best)\nDone. Made 13413 targets from 2220 files in 6285ms\nDone. Made 13413 targets from 2220 files in 6391ms\n\n/work/fx-gn$ GN\u003dprebuilt/third_party/gn/linux-x64/gn\n/work/fx-gn$ cp -f /tmp/gn-master $GN\n/work/fx-gn$ repeat_cmd 5 $GN gen --check out/default\nDone. Made 42114 targets from 3695 files in 12574ms (best)\nDone. Made 42114 targets from 3695 files in 12932ms\nDone. Made 42114 targets from 3695 files in 13155ms\nDone. Made 42114 targets from 3695 files in 13238ms\nDone. Made 42114 targets from 3695 files in 13108ms\n\n/work/fx-gn$ cp -f /tmp/gn-fast-label $GN\n/work/fx-gn$ repeat_cmd 5 $GN gen --check out/default\nDone. Made 42114 targets from 3695 files in 12252ms\nDone. Made 42114 targets from 3695 files in 12336ms\nDone. Made 42114 targets from 3695 files in 12438ms\nDone. Made 42114 targets from 3695 files in 11938ms\nDone. Made 42114 targets from 3695 files in 11601ms (best)\n\nChange-Id: I80c0bd47e89c101c7c42fe57cc71592b2b27713e\nReviewed-on: https://gn-review.googlesource.com/c/gn/+/8000\nReviewed-by: Brett Wilson \u003cbrettw@chromium.org\u003e\nCommit-Queue: Brett Wilson \u003cbrettw@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "95234c9c74c8fa9d1fe4d0ced10f84d3f794739c",
      "old_mode": 33188,
      "old_path": "src/gn/label.h",
      "new_id": "dc9813b439f9c0be97623fcdf704dc3eeb2fed53",
      "new_mode": 33188,
      "new_path": "src/gn/label.h"
    },
    {
      "type": "modify",
      "old_id": "fa92ac2db36165683791950fecd29367c9c1af1c",
      "old_mode": 33188,
      "old_path": "src/gn/string_atom.h",
      "new_id": "29d4e41012597aa205c48d4c5b4eca1d3f80670b",
      "new_mode": 33188,
      "new_path": "src/gn/string_atom.h"
    }
  ]
}
