Re:DRAM Prices in ‘Freefall’
by imtringued on Friday March 08, 2019 @07:15AM
(#19336872)
>that effectively doubles the cost: the int, and now the pointer to that int.
Empty objects aren't free either, so you pay triple.
¹but I don't want to downplay this concern entirely; in the parent's case of an int needing boxing, that effectively doubles the cost: the int, and now the pointer to that int. (Plus any hidden requirements of the allocator, but even if we assume that's free, the story might still be plenty grim.)