Optimize memory usage by turning ContinuationHolder into a union

Authored by dvratil on Oct 9 2019, 5:53 PM.

Description

Optimize memory usage by turning ContinuationHolder into a union

This moves the ContinuationHolder to its own header file and instead of it
having six members for each continuation type, it behaves like a type-safe
union, saving us some memory per each continuation. Once we have C++17, we
could simply typedef ContinuationHolder to std::variant, but for now I
wrote some of the variant-like magic myself.

Details

Committed
dvratilOct 9 2019, 5:56 PM
Parents
R665:d4e85564840e: Rename ContinuationHelper to ContinuationHolder
Branches
Unknown
Tags
Unknown
References
refs/backups/branch-cleanup-modernize-1570721841