[Pmwiki-users] long loading times?
J. Meijer
commentgg
Fri Jun 4 17:18:09 CDT 2004
> ----- Original Message -----
> From: Steven Leite
> Subject: Re: [Pmwiki-users] long loading times?
> Sounds like a great hack .. care to provide the details.
> Thanks,
> -S
Add this line to pmwiki.php ReadPage() :
if (($action=='browse') and (0===strpos($k,'diff:'))) break; //HACK
Place it as the last line in the while loop. And of course add $action to
the list of globals used within ReadPage.
I did not provide the code because:
* these lines provide a proof of concept only, and are largely untested: my
diff's/restores don't work
* even when working now, it is bound to break on future versions
* anyone with programming knowledge would do the one-liner himself
* all others should not try it ;-)
* I thought I was the only one running W2K on a 64Mb RAM machine, where
virtual memory performance decides everything (with Java being the
"killer-app"..).
-jm
ps The [[linebreak]] directives work great, much better. Thanks.
----- Original Message -----
Subject: [Pmwiki-users] long loading times?
> I've seen comments on long delays before the page appears,
> something in the range of 15 seconds. Me too, locally.
>
> I noticed that frequently edited pages load quite a bit more slowly.
> Evidently dragging the tail of all diffs along slows things down.
> Perhaps frequently used files such as menus are rearranged often
> and thus grow bigger and bigger.
>
> So a cut-off on diffs is important but in many ways a pity.
>
> So looking at pmwiki.php I saw the ReadPage function always reading
all of
> the file instead of aborting when it has sufficient data. I changed it
to
> read up to the first diff when no diff was necessary: my wiki was like
new
> :-)
>
> No down-sides.
>
> One could nevertheless care to trim frequently loaded files such as
> menus/headers/footers.
>
> -jm
More information about the pmwiki-users
mailing list