Re: stat/fstat

From: Date: Sat, 12 May 2001 00:39:00 +0000
Subject: Re: stat/fstat
References: 1 2 3 4 5 6 7 8  Groups: php.dev 
Request: Send a blank email to php-dev+get-54932@lists.php.net to get a copy of this message
>Yikes. We were only kidding, Jason :) Ya , but you guys sparked that old memory efficiency routine in my brain from when I used to write assembly : ) Hey did you get a chance to read my fork() dev posting, and that email about assign-op's in zend_execute? I some advice/suggestions . Thanks, -Jason At 23:00 11/5/2001, Jason Greene wrote: >Well, due to the great interest in memory conservation, fstat and stat are now >rewritten to share the vals across multiple keys : ) > >So now we are saving the user >13* sizeof(zval)+sizeof(zend_mem_header).+whatever of memory : ) > >-Jason > >----- Original Message ----- >From: "Zeev Suraski" <zeev@zend.com> >To: "Andrei Zmievski" <andrei@ispi.net> >Cc: "Jason Greene" <jason@inetgurus.net>; "Jason Greene" ><jason@php.net>; >"Brian Foddy" <brian.foddy@nwa.com>; <derick@php.net>; >"Stig Sæther Bakken" <ssb@fast.no>; "PHP Developers Mailing List" ><php-dev@lists.php.net> >Sent: Friday, May 11, 2001 12:36 PM >Subject: Re: [PHP-DEV] stat/fstat > > > > At 19:38 11/5/2001, Andrei Zmievski wrote: > > >On Fri, 11 May 2001, Jason Greene wrote: > > > > True, > > > > I was lazy though and didn't feel like writing all that additional > code, > > > > just to save 13 longs of memory space : ) > > > > > >13 * sizeof(zval) actually. > > > > 13*(sizeof(zval)+sizeof(zend_mem_header)), and possibly slightly more, > > actually :) > > Next thing you know you'd run out of memory just because of this. > > > > Zeev > > -- Zeev Suraski <zeev@zend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/

« previous php.dev (#54932) next »