View Single Post

  #3 (permalink)  
Old 07-12-2007
busnet
 
Posts: n/a
Default Re: advise needed: storing huge structure persistent or alternative approach

On 12 Jul., 14:19, Sebastiaan 'CrashandDie' Lauwers <crashanddie
+use...@gmail.com> wrote:
> busnet wrote:
> > 1) It always reads the XML file anew, when I set another marker. Is
> > there some way to cache this or a more intelligent approach? I tried
> > saving the whole Simplexml-object in a session variable, but it was
> > too huge. I guess I could create some tables in mysql, but I'm not
> > sure thats the best solution yet.

>
> Serialize () the simpleXML-object, and save that in a text file ?
>
> On load, $xmlSimpleObject = unserialize (file_get_contents ()) ?
>
> Dunno if it's faster, but it just might be.


I also thought about that, but it wont be that much faster, I'm
afraid. A file still has to be read every time.

> > 2) Not php-specific: Do you have any ideas how to speed up the process

> Can't help you with that, sorry.


Thanks anyway.

Reply With Quote