How much server ram does a variable consume?
Posted: Fri Oct 22, 2004 2:59 pm
Greetings,
I'm trying to figure out if there's a way in PHP to figure out how much RAM a particular variable is consuming at any given time. More specifically, I want to know how much RAM an entire structure is using.
Basically, I'm in a position where I know I can't use more than 1.5MB of RAM and I'm trying to sort a VERY large data set. I'm using an external sort, but I want to know how many records I can load into RAM and sort at any given point. Thanks for the help!!!
I'm trying to figure out if there's a way in PHP to figure out how much RAM a particular variable is consuming at any given time. More specifically, I want to know how much RAM an entire structure is using.
Basically, I'm in a position where I know I can't use more than 1.5MB of RAM and I'm trying to sort a VERY large data set. I'm using an external sort, but I want to know how many records I can load into RAM and sort at any given point. Thanks for the help!!!