Skip to content

0.2.0: smaller unions

Latest
Compare
Choose a tag to compare
@alaviss alaviss released this 06 Sep 03:39
· 2 commits to main since this release
0.2.0
9bb2395

First breaking change!

With this release, RootObj is no longer part of the inheritance chain. This saves around 8 bytes of memory for every union.
Of course, this means that you can no longer stores union objects as RootObj. This feature has never been supported with Union marked as pure (ie. no RTTI). However, the compiler still generated RTTI storage for RootObj, which was inherited by unions, inflating the object size. By moving to a non-RootObj root, the problem is finally eliminated.

For most users, this change should not cause any issues and it is recommended that all users upgrade.


What's Changed

  • build(deps): bump actions/deploy-pages from 2.0.3 to 2.0.4 by @dependabot in #48
  • build(deps): bump actions/checkout from 3.5.3 to 4.0.0 by @dependabot in #50
  • uniontraits: remove RootObj from inheritance chain by @alaviss in #53

Full Changelog: 0.1.5...0.2.0