‎2015 Dec 03 2:38 AM
Hi,
Someone in my organization is trying to tell me that using inline data declaration uses more heap memory than standard data declaration/assignment.
Is there any truth in this statement or are they misinformed?
Cheers,
‎2015 Dec 03 3:10 AM
AFAIK they are misinformed. The inline data declaration is just shorthand for the same statement without the inline data declaration preceded with the needed data declaration. However if you were used to reusing variables more for different tasks with the actual data declaration then you do now with inline declarations, they are right.
Also, it's an easy thing to quickly test.
‎2015 Dec 08 11:17 AM
Gerrit Beukema is right.
As the documentation says
Why should that use more memory? Especially why heap memory? Named data objects that are declared with declarations - whether inline or not - occupy stack memory.
They are misinformed, and I wonder where that misinformation comes from ...
(as Gerrit says, only if you declare much more data than before, instead of reusing helper variables, you increase the memory usage, but that's explicit, not implicit)