[Pmwiki-users] long loading times?

Patrick R. Michaud pmichaud
Fri Jun 4 20:53:39 CDT 2004


On Sat, Jun 05, 2004 at 07:12:19AM -0700, Steven Leite wrote:
> 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.

"Download" isn't the correct term here -- it's not as if the data is
travelling across the wire--it's only being loaded into memory.  

There are several issues here.  First, it's probably only chance 
that the diff: lines appear at the end of the data files--there's
nothing programmed to ensure it.  Thus, if we stop reading at the
first diff: we run the risk of not having read the page text, author
information, or other items.  Second, there's an extensibility issue--
PmWiki does try to make it possible for people to store other information
in pages, and so we don't always know exactly what fields are needed for
a browse operation.  

Still, something like this would be a useful optimization--especially
for searches.  I'll see if I can come up with a way to segregate page
history information from other properties, and provide a hook for 
routines to request page reads w/o the historical data.

Pm




More information about the pmwiki-users mailing list