Skip to content

Lazy copying for faster updates

Choose a tag to compare

@davidmorgan davidmorgan released this 28 Nov 15:43
· 1001 commits to master since this release
  • Add benchmark for updating deeply nested data structures.
  • Make builders copy lazily. This makes updates to deeply nested structures much faster: only the classes on the path to the update are copied, instead of the entire tree.
  • Breaking change: if you hand-code the builder then you must mark the fields @virtual so they can be overriden in the generated code.
  • Auto-create nested nullable builders when they're accessed. Fixes deserialization with nested nullable builder.