)]}'
{
  "commit": "b902174ba6125f7657b93e11d119df2de8d4c4e1",
  "tree": "f3071d3c3fcf32520d1bcceaf8b6e5977f4565ed",
  "parents": [
    "2bcfe118ee731390eb3b3544808e5d8a27a11b78"
  ],
  "author": {
    "name": "Cody Maloney",
    "email": "cmaloney@users.noreply.github.com",
    "time": "Thu Nov 26 20:09:03 2026"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Nov 26 20:09:03 2026"
  },
  "message": "gh-162350: Use AC vectorcall for _json.make_encoder to speed up json.dumps (#162376)\n\ngh-162350: Use AC vectorcall for _json.make_encoder\n\njson.dumps() builds a new encoder on every call, so this is per-call\noverhead for small payloads.\n\n@vectorcall requires an immutable type: setting attributes on\n_json.make_encoder now raises TypeError. Bad separators are now named\n(\"argument \u0027key_separator\u0027\") instead of \"argument 5\".\n\npyperformance, PGO+LTO:\n\n| Benchmark  | main    | branch                |\n|------------|:-------:|:---------------------:|\n| json_dumps | 4.24 ms | 4.00 ms: 1.06x faster |\n\npyperf microbenchmarks, PGO+LTO:\n\n| Benchmark                                | main    | branch                |\n|------------------------------------------|:-------:|:---------------------:|\n| json.dumps(1)                            | 456 ns  | 409 ns: 1.12x faster  |\n| json.dumps(small, separators\u003d(\u0027,\u0027, \u0027:\u0027)) | 1.22 us | 1.13 us: 1.07x faster |\n| json.dumps(small)                        | 850 ns  | 794 ns: 1.07x faster  |\n| json.dumps(small, sort_keys\u003dTrue)        | 1.31 us | 1.23 us: 1.07x faster |\n\nCo-authored-by: Claude Opus 5.5 \u003cnoreply@anthropic.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fed4cef9353f10f316a7c41d995f36837f1a38b9",
      "old_mode": 33188,
      "old_path": "Include/internal/pycore_global_objects_fini_generated.h",
      "new_id": "8418722b622dc52845fcc0a766bb9db3ec131d29",
      "new_mode": 33188,
      "new_path": "Include/internal/pycore_global_objects_fini_generated.h"
    },
    {
      "type": "modify",
      "old_id": "70870105113051656a2eaaba62bcf2136eea0701",
      "old_mode": 33188,
      "old_path": "Include/internal/pycore_global_strings.h",
      "new_id": "02f6a0a3011fb7183be394fdff2693e2f0059c7c",
      "new_mode": 33188,
      "new_path": "Include/internal/pycore_global_strings.h"
    },
    {
      "type": "modify",
      "old_id": "313fbea999d0707e5be7e4124f1c34c98c5937ed",
      "old_mode": 33188,
      "old_path": "Include/internal/pycore_runtime_init_generated.h",
      "new_id": "bce100733f8436f4e562cf30eacbd839f9b1c079",
      "new_mode": 33188,
      "new_path": "Include/internal/pycore_runtime_init_generated.h"
    },
    {
      "type": "modify",
      "old_id": "b34648433b89a5bc101dd861baa656bb8fb733c6",
      "old_mode": 33188,
      "old_path": "Include/internal/pycore_unicodeobject_generated.h",
      "new_id": "02e9a22918bbfd236ed5637dded58fc3d321ead5",
      "new_mode": 33188,
      "new_path": "Include/internal/pycore_unicodeobject_generated.h"
    },
    {
      "type": "modify",
      "old_id": "e79b697f06c994c1feedf27fd66ead4e1d9fcaa8",
      "old_mode": 33188,
      "old_path": "Modules/_json.c",
      "new_id": "1da12a3330a65bcd02873ebf92b2854a69906c1c",
      "new_mode": 33188,
      "new_path": "Modules/_json.c"
    },
    {
      "type": "modify",
      "old_id": "d3ed1dfe0515a0a05a3d7b23576dbaa72aeaa16a",
      "old_mode": 33188,
      "old_path": "Modules/clinic/_json.c.h",
      "new_id": "79315078d44582df17d925e234a25c9b6bae6655",
      "new_mode": 33188,
      "new_path": "Modules/clinic/_json.c.h"
    }
  ]
}
