[Issue 19987] std.variantN wastes space

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 21 13:26:41 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19987

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #7082 "19987 - Reduce memory used by VariantN" was
merged into master:

- 6da85c4f8cd8a123817fe908f709e879766a1435 by Kriyszig:
  Fix Issue 19987 - Reducing memory used by VariantN

  Swapping the fptr and union around will avoid unnecessary padding.

https://github.com/dlang/phobos/pull/7082

--


More information about the Digitalmars-d-bugs mailing list