[Pmwiki-users] long loading times?

Steven Leite steven_leite
Fri Jun 4 20:24:11 CDT 2004


I really like the idea of not downloading ALL the data in the file that
isn't going to be directly viewed.  The sandbox for example.  It makes
good sense to only read the information that's going to get displayed.
I like that aspect of your hack - it should speed things up on any
server (for big pages with lots of revisions).

Maybe I'm wrong.  I'll be happy to hear any comments from Pm regarding
this.

There should be a way to detect if a "view page history" or "view page"
has been clicked.  Obviously, if the user clicks "view page history",
then the entire file should be read.

-S

----- Original Message ----- 
From: "J. Meijer" <commentgg at hotmail.com>
To: <Pmwiki-users at pmichaud.com>
Sent: Friday, June 04, 2004 11:43 AM
Subject: Re: [Pmwiki-users] long loading times?


> > ----- 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
>
>
>
>
> -- 
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
>
>




More information about the pmwiki-users mailing list