)]}'
{
  "commit": "9671e959d25b5eb7537073ad78dd8bb1c9ca07c4",
  "tree": "30ff38e6cb82302edb38ff80fabc7649604a5d78",
  "parents": [
    "1e20367d87184c47ee591809fe28cb0ebd4f8991"
  ],
  "author": {
    "name": "hernan",
    "email": "hernan@rive.app",
    "time": "Tue Nov 03 17:13:45 2026 -0800"
  },
  "committer": {
    "name": "hernan",
    "email": "hernan@rive.app",
    "time": "Tue Nov 03 17:13:45 2026 -0800"
  },
  "message": "perf(runtime): share names and size lists when instancing artboards (#15394)\n\n* perf(runtime): share an instance\u0027s names with its source\n\nAn artboard instance clones every component of its source, and each clone\ndeep-copied the component\u0027s name sidecar: an allocation per named\ncomponent, and a second one for a name past the small-string size. Files\nthe editor exports keep every component\u0027s name, so that was an allocation\nper object of every instance. The generated property clusters (names, and\nthe cold layout and corner radius fields) now use SharedSidecar, which a\ncopy shares with the object it was copied from until either side writes\nto it.\n\nThe hand-written Sidecar members hold mutable per-object state and keep\ntheir deep copy.\n\nIn the HUD perf tray, an added leaderboard row makes 51 fewer allocations\n(591 to 540): 43 component names, and 8 more in the view model item the\nhost makes for it, whose values clone their names too. A lap row also\nmakes 51 fewer.\n\n* perf(runtime): size an instance\u0027s lists like its source\u0027s\n\nAn artboard instance fills its drawables, advancing components, data\nbinds and the other lists initialize builds an entry at a time, and ends\nup with exactly as many as its source. Each grew geometrically, so a row\npaid several allocations per list and kept up to as many entries again in\nunused capacity: an instance of an artboard with 282 drawables held room\nfor 512. The instance now sizes them from its source before cloning, and\na state machine instance sizes its data binds from its machine. A\ncontainer\u0027s dirty-bind list is sized with its binds, as all of them are\ndirty once first bound.\n\nIn the HUD perf tray, an added leaderboard row makes 18 fewer allocations\n(540 to 522); a lap row makes 15 fewer.\n\n* perf(text): size a new text\u0027s runs and styled characters once\n\nA cloned text\u0027s runs add themselves one at a time to its two run lists,\nand the first styling of a text appends its characters and runs one at a\ntime, so a new text grew each of those four lists geometrically. A clone\nnow sizes its run lists from its source, and styling first sizes the\ncharacters and runs it will append: a run\u0027s UTF-8 bytes bound its\ncharacters. Past that first sizing it grows them at least twice over, the\nway appending does, so a text that grows a little at a time doesn\u0027t\nreallocate on every styling.\n\nIn the HUD perf tray, an added leaderboard row makes 19 fewer allocations\n(522 to 503); a lap row makes 18 fewer.\n\n* fix(text): size a cloned text\u0027s runs only when text is built\n\nText::clone reserved its runs, which only exist with WITH_RIVE_TEXT, so\na runtime built without text no longer compiled. The reserves are\nguarded like the runs they size.\n\nRive-Mono-Commit: 8872e523060d9502ade28e88d993ae722d151627\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e47878ce32261659579a56ab661f252996ca661a",
      "old_mode": 33188,
      "old_path": "dev/core_generator/lib/src/definition.dart",
      "new_id": "fd428a5f020d9bb73880343477a8533c0362bbcc",
      "new_mode": 33188,
      "new_path": "dev/core_generator/lib/src/definition.dart"
    },
    {
      "type": "modify",
      "old_id": "1db2b4a704bcf2bec9855df87fcd4fb26c250782",
      "old_mode": 33188,
      "old_path": "include/rive/artboard.hpp",
      "new_id": "52f67fea05fa9e6851e5200cdb00ffa84a9d2b23",
      "new_mode": 33188,
      "new_path": "include/rive/artboard.hpp"
    },
    {
      "type": "modify",
      "old_id": "1e1a68d29b1879ce6e7d90121f4beac872ee4b5c",
      "old_mode": 33188,
      "old_path": "include/rive/data_bind/data_bind_container.hpp",
      "new_id": "20af09efe69582fb741c7d5f27b378ff5916758e",
      "new_mode": 33188,
      "new_path": "include/rive/data_bind/data_bind_container.hpp"
    },
    {
      "type": "modify",
      "old_id": "27bb458e89df40cddc09284b48edad0757a5bb18",
      "old_mode": 33188,
      "old_path": "include/rive/generated/component_base.hpp",
      "new_id": "3f437db353327b3a3fb0c890b9fd66d6a20eb998",
      "new_mode": 33188,
      "new_path": "include/rive/generated/component_base.hpp"
    },
    {
      "type": "modify",
      "old_id": "006e3e7f7a0ca5450232c39ee21f9e04447ee921",
      "old_mode": 33188,
      "old_path": "include/rive/generated/layout/layout_component_style_base.hpp",
      "new_id": "02bf234af01d29e5af16db18331346ab390d2895",
      "new_mode": 33188,
      "new_path": "include/rive/generated/layout/layout_component_style_base.hpp"
    },
    {
      "type": "modify",
      "old_id": "136d12823ea92a21c61bde854e855b396866a305",
      "old_mode": 33188,
      "old_path": "include/rive/generated/layout/layout_sizing_style_base.hpp",
      "new_id": "8911db2b2a729a940c84c115bbe52583ba3ca136",
      "new_mode": 33188,
      "new_path": "include/rive/generated/layout/layout_sizing_style_base.hpp"
    },
    {
      "type": "modify",
      "old_id": "892cca8f267db20e1e452e43f082e33398ad7137",
      "old_mode": 33188,
      "old_path": "include/rive/generated/shapes/rectangle_base.hpp",
      "new_id": "8136607c31deedd15eb5be686ed7e3631b4a6142",
      "new_mode": 33188,
      "new_path": "include/rive/generated/shapes/rectangle_base.hpp"
    },
    {
      "type": "modify",
      "old_id": "33c33ec37cb575593a46d7c5e3d609f3528976f2",
      "old_mode": 33188,
      "old_path": "include/rive/sidecar.hpp",
      "new_id": "cdcd2c9f20a4f6546dbf55e21337103991a97f41",
      "new_mode": 33188,
      "new_path": "include/rive/sidecar.hpp"
    },
    {
      "type": "modify",
      "old_id": "0e2f6636a94f1af078d9a7a022e70265d7d1e507",
      "old_mode": 33188,
      "old_path": "include/rive/text/text.hpp",
      "new_id": "1d3a0775a74208fee33f69bf7f697ea9113ee448",
      "new_mode": 33188,
      "new_path": "include/rive/text/text.hpp"
    },
    {
      "type": "modify",
      "old_id": "98d226b868a9ec88d1994486ab272104d7b29f9d",
      "old_mode": 33188,
      "old_path": "src/animation/state_machine_instance.cpp",
      "new_id": "93e51fadbd19495cca4b00513bf5929f8142c6a2",
      "new_mode": 33188,
      "new_path": "src/animation/state_machine_instance.cpp"
    },
    {
      "type": "modify",
      "old_id": "1cecec9de7cb2643025942101fad6c013fa03feb",
      "old_mode": 33188,
      "old_path": "src/artboard.cpp",
      "new_id": "b91b9ab0e5f08221a194463119237a1109e20675",
      "new_mode": 33188,
      "new_path": "src/artboard.cpp"
    },
    {
      "type": "modify",
      "old_id": "4c55a6558637d8cc8e980dd65e646ed94d517cd2",
      "old_mode": 33188,
      "old_path": "src/text/text.cpp",
      "new_id": "9aabcdcd05d9ddc146f1290ff7f44ca3b5b2ea36",
      "new_mode": 33188,
      "new_path": "src/text/text.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "72d5fae466814adc50d06efdc6693be982596a53",
      "new_mode": 33188,
      "new_path": "tests/unit_tests/runtime/instance_list_sizing_test.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a24371e84b581b01c60bb19feffe079e3cc8385f",
      "new_mode": 33188,
      "new_path": "tests/unit_tests/runtime/shared_sidecar_test.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a6577c05c05858e581bfe4f64ff2021a289e0289",
      "new_mode": 33188,
      "new_path": "tests/unit_tests/runtime/text_run_sizing_test.cpp"
    }
  ]
}
