3 ms·
I'd really like to see the source of that overhead. I'm looking at the Zend source and only seeing 16-20 bytes of overhead per `zval`, depending on alignment.
by jemfinch 17y ago
I'd really like to see the source of that overhead. I'm looking at the Zend source and only seeing 16-20 bytes of overhead per `zval`, depending on alignment.
- pbiggar 17y agoOK, I misspoke. I'll quote from someone who knows this stuff way better than me: "As a result of the function-local symbol-table, each PHP variable uses a great amount of space. The zval itself is 16 bytes long. However, the symbol-table is a hashtable with a 36 byte bucket. Combined with memory allocation overhead, each variable occupies 68 bytes on a 32-bit platform [?], and nearly double that on a 64-bit platform. " - me, sometime within the last two years.
- jemfinch 17y agoAh, great -- thanks. I found the fuller email whence that came at http://www.mail-archive.com/internals@lists.php.net/msg35235.html http://www.mail-archive.com/internals@lists.php.net/msg35235... , in case anyone else is interested.