You are here: Re: advise needed: storing huge structure persistent or alternative approach « PHP Language « IT news, forums, messages
Re: advise needed: storing huge structure persistent or alternative approach

Posted by Sebastiaan 'CrashandDie' Lauwers on 07/12/07 12:19

busnet wrote:
> Hi.

Hi,

> Problems/need for ideas:
> 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.

> 2) Not php-specific: Do you have any ideas how to speed up the process
> of finding the nearest lane(s)? I tried to consider only those streets
> whose endpoints are within a certain range from the given marker-
> point, but it was not considerably faster and if there was a street
> thats very long and straight the endpoints may be far away, but the
> street itself is quite near.

Can't help you with that, sorry.

HTH,

S/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация