)]}'
{
  "commit": "ff9803a617a3a4d42f5ce9c1ea2cb3bf224766ef",
  "tree": "8d0794ce5f38692f626e54731efeb29288d15b58",
  "parents": [
    "1994e3f28666ac20d2e500d611d5b7e619a0e505"
  ],
  "author": {
    "name": "Tan Long",
    "email": "tanloong@foxmail.com",
    "time": "Thu Nov 26 20:54:52 2026"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Nov 26 20:54:52 2026"
  },
  "message": "gh-162350: Add AC vectorcall for property, sentinel, and typing (#162440)\n\n## 1. property\nAdd `@vectorcall` to `property.__init__` (the constructor\u0027s argument parsing lives there; `tp_new` is `PyType_GenericNew`). There is no change of exception text for bad arguments.\n\nBenchmark:\n\n```\n+--------------------------------+--------+------------------------+\n| Benchmark                      | main   | patch                  |\n+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\n| property()                     | 121 ns | 108 ns: 1.12x faster   |\n| property(f)                    | 168 ns | 135 ns: 1.24x faster   |\n+--------------------------------+--------+------------------------+\n| Geometric mean                 | (ref)  | 1.18x faster           |\n+--------------------------------+--------+------------------------+\n```\n\n```python\nimport pyperf\n\nSETUP \u003d \"\"\"\nimport builtins\ndef f(self): pass\nproperty \u003d builtins.property\n\"\"\"\n\nCASES \u003d [\n    (\u0027property()\u0027, \u0027property()\u0027),\n    (\u0027property(f)\u0027, \u0027property(f)\u0027)\n]\n\nrunner \u003d pyperf.Runner()\nfor name, stmt in CASES:\n    runner.timeit(name, stmt\u003dstmt, setup\u003dSETUP)\n```\n\n## 2. sentinel\n\nAdd `@vectorcall` to `sentinel.__new__`. The keyword-only `repr` parameter means AC routes calls through a helper, but the vectorcall still avoids constructing an argument tuple.\n\nBenchmark:\n\n```\n+--------------------------------+--------+------------------------+\n| Benchmark                      | main   | patch                  |\n+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\n| sentinel(\u0027x\u0027)                  | 158 ns | 116 ns: 1.37x faster   |\n+--------------------------------+--------+------------------------+\n```\n\n```python\nimport pyperf\n\nSETUP \u003d \"\"\"\nimport builtins\nsentinel \u003d builtins.sentinel\n\"\"\"\n\nCASES \u003d [\n    (\"sentinel(\u0027x\u0027)\", \"sentinel(\u0027x\u0027)\"),\n    (\"builtins.sentinel(\u0027x\u0027)\", \"builtins.sentinel(\u0027x\u0027)\")\n]\n\nrunner \u003d pyperf.Runner()\nfor name, stmt in CASES:\n    runner.timeit(name, stmt\u003dstmt, setup\u003dSETUP)\n```\n\n## 3. typing\n\nAdd `@vectorcall` to the `TypeAliasType`, `ParamSpecArgs` and `ParamSpecKwargs` constructors. No change of exception text for bad arguments.\n\nBenchmark:\n\n```\n+--------------------------------+--------+------------------------+\n| Benchmark                      | main   | patch                  |\n+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d+\n| TypeAliasType(\u0027T\u0027, int)        | 160 ns | 124 ns: 1.29x faster   |\n| ParamSpecArgs(ps)              | 139 ns | 103 ns: 1.36x faster   |\n| ParamSpecKwargs(ps)            | 133 ns | 102 ns: 1.30x faster   |\n+--------------------------------+--------+------------------------+\n| Geometric mean                 | (ref)  | 1.32x faster           |\n+--------------------------------+--------+------------------------+\n```\n\n```python\nimport pyperf\n\nSETUP \u003d \"\"\"\nimport typing\nfrom typing import TypeAliasType, ParamSpecArgs, ParamSpecKwargs\nps \u003d typing.ParamSpec(\u0027P\u0027)\n\"\"\"\n\nCASES \u003d [\n    (\"TypeAliasType(\u0027T\u0027, int)\", \"TypeAliasType(\u0027T\u0027, int)\"),\n    (\u0027ParamSpecArgs(ps)\u0027, \u0027ParamSpecArgs(ps)\u0027),\n    (\u0027ParamSpecKwargs(ps)\u0027, \u0027ParamSpecKwargs(ps)\u0027)\n]\n\nrunner \u003d pyperf.Runner()\nfor name, stmt in CASES:\n    runner.timeit(name, stmt\u003dstmt, setup\u003dSETUP)\n```",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "879b872d9b3ae6156403791acc8e004162ed8f4e",
      "old_mode": 33188,
      "old_path": "Objects/clinic/descrobject.c.h",
      "new_id": "78e50efd9783e68c421ecc35edd191d401136994",
      "new_mode": 33188,
      "new_path": "Objects/clinic/descrobject.c.h"
    },
    {
      "type": "modify",
      "old_id": "f8503194ae5c74024492f148b9bcfc59992eec50",
      "old_mode": 33188,
      "old_path": "Objects/clinic/sentinelobject.c.h",
      "new_id": "1f7d82c524a24c97efcdb32e4b7c9dc5abefbeae",
      "new_mode": 33188,
      "new_path": "Objects/clinic/sentinelobject.c.h"
    },
    {
      "type": "modify",
      "old_id": "95f09faceba0b5908115fbed6fe6023bbdec44c0",
      "old_mode": 33188,
      "old_path": "Objects/clinic/typevarobject.c.h",
      "new_id": "b6f20527c31b8358334ec1483019688004e62506",
      "new_mode": 33188,
      "new_path": "Objects/clinic/typevarobject.c.h"
    },
    {
      "type": "modify",
      "old_id": "6f3be87e0ca753bbc2ebbd7ba2f117345e3f9fb8",
      "old_mode": 33188,
      "old_path": "Objects/descrobject.c",
      "new_id": "8470995f9b5882c5803fd60eb819233df5f37082",
      "new_mode": 33188,
      "new_path": "Objects/descrobject.c"
    },
    {
      "type": "modify",
      "old_id": "77bffbc397be585d48c1aa1cb0a0b398f369c153",
      "old_mode": 33188,
      "old_path": "Objects/sentinelobject.c",
      "new_id": "aa8bb963348b7136d0b3a0d4c9e08cb4c6456e84",
      "new_mode": 33188,
      "new_path": "Objects/sentinelobject.c"
    },
    {
      "type": "modify",
      "old_id": "11ff8320fd9a4870e0f95ac37b6a5947f99b2c6a",
      "old_mode": 33188,
      "old_path": "Objects/typevarobject.c",
      "new_id": "ac2e027cf5f1f0130e7cc815692fb509243d0a5a",
      "new_mode": 33188,
      "new_path": "Objects/typevarobject.c"
    }
  ]
}
