)]}'
{
  "commit": "160758a574d12bf0d965d8206136e7da4f4fd6c3",
  "tree": "1c3d94bd8c6c80738334ae0bbc64bd70081846e7",
  "parents": [
    "450db61a78989c5a1f1106be01e071798c783cf9"
  ],
  "author": {
    "name": "Jan Hicken",
    "email": "janhicken@users.noreply.github.com",
    "time": "Sun Nov 10 14:57:24 2024"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Sun Nov 10 14:57:24 2024"
  },
  "message": "gh-126565: Skip `zipfile.Path.exists` check in write mode (#126576)\n\nWhen `zipfile.Path.open` is called, the implementation will check\r\nwhether the path already exists in the ZIP file. However, this check is\r\nonly required when the ZIP file is in read mode. By swapping arguments\r\nof the `and` operator, the short-circuiting will prevent the check from\r\nbeing run in write mode.\r\n\r\nThis change will improve the performance of `open()`, because checking\r\nwhether a file exists is slow in write mode, especially when the archive\r\nhas many members.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c0e53e273cfaac14e9b6034a586ebc8e4b7d5989",
      "old_mode": 33188,
      "old_path": "Lib/zipfile/_path/__init__.py",
      "new_id": "5ae16ec970dda421053623c617d27436f4170388",
      "new_mode": 33188,
      "new_path": "Lib/zipfile/_path/__init__.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "22858570bbe03c856201e682e36e3cb9ceab0fb0",
      "new_mode": 33188,
      "new_path": "Misc/NEWS.d/next/Library/2024-11-08-11-06-14.gh-issue-126565.dFFO22.rst"
    }
  ]
}
