)]}'
{
  "commit": "7143f4a4e1bc39be785a4482e622a206457450c4",
  "tree": "75d9efa2fe555115b411796e9226dd4bb52ccd54",
  "parents": [
    "23b0dabe630b463b28ffc2871505befb3c5d3b4b"
  ],
  "author": {
    "name": "qmuntal",
    "email": "quimmuntal@gmail.com",
    "time": "Mon Oct 07 12:34:12 2024 +0200"
  },
  "committer": {
    "name": "Quim Muntal",
    "email": "quimmuntal@gmail.com",
    "time": "Mon Oct 07 19:17:02 2024 +0000"
  },
  "message": "windows: manually initialize NewNTUnicodeString\n\nThe `RtlInitUnicodeString` syscall can be avoided by manually\ninitializing the `NTUnicodeString`.\n\nThe process is described in [WdmlibRtlInitUnicodeStringEx](https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdmsec/nf-wdmsec-wdmlibrtlinitunicodestringex).\n\nThe less syscalls, the better. It also makes the function faster:\n\n```\ngoos: windows\ngoarch: amd64\npkg: golang.org/x/sys/windows\ncpu: Intel(R) Core(TM) i7-10850H CPU @ 2.70GHz\n                      │    old.txt    │               new.txt                │\n                      │    sec/op     │    sec/op     vs base                │\nNewNTUnicodeString-12   181.05n ± 15%   96.32n ± 11%  -46.80% (p\u003d0.000 n\u003d10)\n```\n\nChange-Id: Iaf079acdcc2024cdca6b6b649a711f6be99c5b87\nReviewed-on: https://go-review.googlesource.com/c/sys/+/618175\nReviewed-by: Damien Neil \u003cdneil@google.com\u003e\nReviewed-by: Cherry Mui \u003ccherryyz@google.com\u003e\nLUCI-TryBot-Result: Go LUCI \u003cgolang-scoped@luci-project-accounts.iam.gserviceaccount.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5cee9a3143fd5e426980d338925943c4baf862f0",
      "old_mode": 33188,
      "old_path": "windows/syscall_windows.go",
      "new_id": "63471b0e4e6ac329848a756515e61134d99cba8c",
      "new_mode": 33188,
      "new_path": "windows/syscall_windows.go"
    }
  ]
}
