)]}'
{
  "commit": "14be23e5b48bec28285f8a694875175ecacfddb3",
  "tree": "8fca0476a97c50078d2dd2425b398ef0523bbfa4",
  "parents": [
    "59c1ca1e4661ed4452be4069ceea3c233f4deec1"
  ],
  "author": {
    "name": "Branden Brown",
    "email": "zephyrtronium@gmail.com",
    "time": "Wed Oct 18 12:56:12 2023 -0500"
  },
  "committer": {
    "name": "Gopher Robot",
    "email": "gobot@golang.org",
    "time": "Mon Mar 04 17:26:02 2024 +0000"
  },
  "message": "semaphore: cancel acquisition with a done context\n\nWhen acquiring from a semaphore could proceed without contention, the\nprevious behavior was to always do so, even when the provided context\nwas done. This was the documented behavior, but it could lead to\nconfusion. It isn\u0027t much more expensive to check the context error, so\ncancel acquisition if it\u0027s done.\n\nFixes golang/go#63615.\n\ngoos: linux\ngoarch: amd64\npkg: golang.org/x/sync/semaphore\ncpu: 12th Gen Intel(R) Core(TM) i5-1235U\n                                        │  old.bench  │             new.bench              │\n                                        │   sec/op    │   sec/op     vs base               │\nAcquireSeq/Weighted-acquire-1-1-1-12      26.45n ± 2%   27.25n ± 3%  +3.04% (p\u003d0.001 n\u003d20)\nAcquireSeq/Weighted-acquire-2-1-1-12      26.96n ± 1%   27.12n ± 1%       ~ (p\u003d0.104 n\u003d20)\nAcquireSeq/Weighted-acquire-16-1-1-12     26.07n ± 3%   27.48n ± 1%  +5.45% (p\u003d0.000 n\u003d20)\nAcquireSeq/Weighted-acquire-128-1-1-12    26.19n ± 2%   27.24n ± 1%  +4.01% (p\u003d0.000 n\u003d20)\nAcquireSeq/Weighted-acquire-2-2-1-12      25.61n ± 1%   25.99n ± 2%       ~ (p\u003d0.066 n\u003d20)\nAcquireSeq/Weighted-acquire-16-2-8-12     209.6n ± 2%   211.0n ± 3%       ~ (p\u003d0.280 n\u003d20)\nAcquireSeq/Weighted-acquire-128-2-64-12   1.669µ ± 1%   1.721µ ± 2%  +3.09% (p\u003d0.000 n\u003d20)\nAcquireSeq/Weighted-acquire-2-1-2-12      51.08n ± 1%   53.03n ± 2%  +3.82% (p\u003d0.000 n\u003d20)\nAcquireSeq/Weighted-acquire-16-8-2-12     52.48n ± 2%   53.66n ± 2%  +2.26% (p\u003d0.028 n\u003d20)\nAcquireSeq/Weighted-acquire-128-64-2-12   52.27n ± 1%   53.71n ± 2%  +2.75% (p\u003d0.000 n\u003d20)\ngeomean                                   60.06n        61.69n       +2.71%\n\nChange-Id: I0ae1a0bb6c027461ac1a9ee71c51efd8427ab308\nReviewed-on: https://go-review.googlesource.com/c/sync/+/536275\nAuto-Submit: Bryan Mills \u003cbcmills@google.com\u003e\nReviewed-by: Bryan Mills \u003cbcmills@google.com\u003e\nReviewed-by: Michael Knyszek \u003cmknyszek@google.com\u003e\nLUCI-TryBot-Result: Go LUCI \u003cgolang-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "30f632c577bd1aa41489c813ed1cd580b6f52d45",
      "old_mode": 33188,
      "old_path": "semaphore/semaphore.go",
      "new_id": "b618162aab648f61fedf72757e0e46cca3af2c9a",
      "new_mode": 33188,
      "new_path": "semaphore/semaphore.go"
    },
    {
      "type": "modify",
      "old_id": "6e8eca290fe61bc204f953b0ea4d6eab49df8e4a",
      "old_mode": 33188,
      "old_path": "semaphore/semaphore_test.go",
      "new_id": "61012d6d9a0407bce0cb31b39c21280e04c4caad",
      "new_mode": 33188,
      "new_path": "semaphore/semaphore_test.go"
    }
  ]
}
