Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the amount of code make a data structure larger?

I have an arraylist of items that only have maybe ten variables in them. But the items have a good bit of code, and I'd like to add more. I'm curious how this will effect the size of my structure. My intuition tells me each one has a stack, but with arguments getting passed around and stuff I've probably not considered I'm unsure. So roughly just how much is code adding to my data structure?

like image 377
SixOThree Avatar asked Nov 30 '22 20:11

SixOThree


1 Answers

Code does not add to the size of your structure.

like image 84
Mitch Wheat Avatar answered Dec 05 '22 10:12

Mitch Wheat