Skip to content

Reduce memory usage by optimising ArcWithoutWeak and by removing async finalisation

Yorick Peterse requested to merge reduce-memory-usage into master

This makes two changes:

  1. ArcWithoutWeak is made NonNull, meaning that Option<ArcWithoutWeak<T>> is now 8 bytes instead of 16.
  2. Async finalisation is removed in favour of finalising objects when reusing object slots

Both reduce memory usage for programs with lots of processes, and simplify the code base.

Merge request reports