in reply to Re: Measurement of physical memory
in thread Measurement of physical memory
Note, BTW, that with the Wonderful World of utf8, the number of characters in $message and it's size in bytes are not neccessarly the same. The above normaly gives the length in characters; to get the length in bytes,
But remember that doesn't count all the overhead of a scalar. (28 bytes on most boxes, IIRC, but there are very few circumstances where you should care.)use bytes (); ... $sizeof=bytes::length($message);
Update: Fixed tpyos.
|
|---|