Skip to content

Shrink computed values

Three things in this MR:

  • Box the NodeId in the IRI::Resource variant
  • Box the NodeId in the PaintServer::Iri variant
  • Use a boxed slice for Dasharray

The first two are under the assumption that the IRI-typed fields in ComputedValues tend to be unset, and paint servers with an IRI are not as common as solid colors anyway.

This shrinks ComputedValues from 768 bytes to 424 bytes, per cargo +nightly rustc -- -Z print-type-sizes

Merge request reports