Re: serializing references, almost without modifications
| From: | thies at digicol dot de | Date: | Wed, 19 Jul 2000 13:51:31 +0000 |
| Subject: | Re: serializing references, almost without modifications | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-25097@lists.php.net to get a copy of this message | ||
On Wed, Jul 19, 2000 at 03:15:31PM +0200, waldschrott wrote:
> > The only way i see when its possible (but very slow i think) is
> > when you can retieve the addess a the reference is pointing to and the
> > scan all (non reference) variables and search for the var that is
> > pointing to that adress.
> >
> > Maybe (if it's possible) someone should benchmark how fast (on a slow
> > machiene) you can scan lots of variables and the get (compare) the
> > adress there pointing to
>
> That´s what I wanted to say! I can imagine that it´s dramatically faster
> than creating a new instance every time in a session, with
> initialization and so on, just to get references back... thus speed does
> not matter really.
have you ever considered using __sleep() and __wakeup() calls
in your class? that would even allow to serialize resources
etc.
tc
>
> regards
>
> --
> o----------0-¬---------O-·---¬----o---®-----o o O ° .
> | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤
> ° ·
>
> 0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ °
> o © ° . ·
> | psychedelic experience | gott@kiffen.de | O ° o °
> o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany