in reply to Re^6: Perl memory usage
in thread Performance, Abstraction and HOP
...of course, the 12 bytes from above is a tad bit slimmer than the apparently 112 byte structure on the perl side.struct tree { int elem; struct tree *left, *right; }; int main(int argc, char **argv) { printf("sizeof(int)=%d,sizeof(struct tree)=%d\n", sizeof(int),sizeof(struct tree)); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Perl memory usage
by kscaldef (Pilgrim) on Sep 02, 2005 at 17:30 UTC | |
by Anonymous Monk on Sep 02, 2005 at 17:48 UTC |