)]}'
{
  "commit": "3c121a9cd9c665f3aca903c473ec91dc8af68721",
  "tree": "50febfd5a02b540f8872ecf404825445b1ecb35a",
  "parents": [
    "34288d3f1bf0d6a224fefed771ff53373d552636"
  ],
  "author": {
    "name": "Peter Lobsinger",
    "email": "plobsing@gmail.com",
    "time": "Thu Aug 08 16:29:47 2024 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Aug 08 16:29:47 2024 -0700"
  },
  "message": "perf: use darwin\u0027s clonefile syscall (#893)\n\n* perf: use darwin\u0027s clonefile syscall\r\n\r\nThis saves time and disk-space when copying files around on the same\r\ndevice. File clones (aka reflinks) share backing disk blocks; they\r\ndiffer from hardlinks in that inodes are not shared and the contents are\r\ncopy-on-write.\r\n\r\nThe Go standard library (as of v1.22) arranges to do a similar thing for file\r\ncopies on Linux (see: https://cs.opensource.google/go/go/+/refs/tags/go1.22.6:src/os/zero_copy_linux.go;l\u003d53).\r\nUnfortunately, Mac OS\u0027 more limited API is less amenable to that form of\r\ntransparent wrapping.\r\n\r\n* Assign to named return params and use naked returns",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d3f89660335a8e76fd6e1b867cf07b0acdf9d536",
      "old_mode": 33188,
      "old_path": "tools/common/BUILD.bazel",
      "new_id": "586868d54d4598e927077f13e7f180e9825e2bcf",
      "new_mode": 33188,
      "new_path": "tools/common/BUILD.bazel"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "fff77760fd401fd61aab00353637556e496b4aac",
      "new_mode": 33188,
      "new_path": "tools/common/clonefile_darwin.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2fcd38efef078a986d3124922c53166598528c76",
      "new_mode": 33188,
      "new_path": "tools/common/clonefile_stub.go"
    },
    {
      "type": "modify",
      "old_id": "a4fa024d6f9e0e4b3d018b67a7fd11b3c6634638",
      "old_mode": 33188,
      "old_path": "tools/common/copy.go",
      "new_id": "d3a953cd29b6c08175c03223300d48756327d08f",
      "new_mode": 33188,
      "new_path": "tools/common/copy.go"
    }
  ]
}
