|
Posted by Jerry Stuckle on 09/08/07 21:15
Mikhail Kovalev wrote:
> On 8 Sep, 22:33, Michael Fesser <neti...@gmx.de> wrote:
>> .oO(Mikhail Kovalev)
>>
>>> On 8 Sep, 22:05, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>>>> But the real question is - why does it take several seconds to load?
>>>> I've never had a PHP file take that long!
>>> It loads a 1,8 MB array stored as serialized in a file....=)
>> Just curious - what's in that array? Wouldn't it be possible to use a
>> database instead?
>>
>> Micha
>
> It's a tree of 20 levels. Like arrays in an array in etc
>
> I have no experience with Mysql which would be the only option in my
> case, sort of new to php as well, and im unsure of amount of work
> needed to rewrite the code,
> Load time is only some 10-15 seconds anyway, but very heavy on RAM on
> my machine, illl tell you hehe
>
A relational database would speed things up considerably. Especially if
you don't need all of the items.
And 10-15 seconds? Very few users are going to wait that long, and only
the most desperate will do it repeatedly.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|