Large html pages and slow load times/high CPU usage

Jian (James) Zhou jameszhou2000-PkbjNfxxIARBDgjK7y7TUQ at public.gmane.org
Wed Jun 15 02:56:33 UTC 2005


> > Madison Kelly wrote:
> It is a stress-test case... The situation arises what the user has many, 
> many directories all opened in the file browser. In my test case, all 
> ~26,000 directories from my sample partition have been selected for 
> display. Currently I am experiementing with a javascipt app that would, 
> at the very least, require only a single load of the directory tree.
> 
> Currently Each time the directory branch is expanded or contracted the 
> data is re-read from the database and redrawn. Waiting ~one minute on my 
> (modest) test machine to load 26k directories once I can live with. 
> Taking that long every time a single branch is expanded or contracted 
> though is less tolerable. I am hoping I can intregrate this tree app I 
> have to serve my purpose and if I can I will live with the current 
> initial load time on one minute.
> 
> Madison
> 


Just a few thoughts, and not sure if this is going to work or not. Since 
you mentioned that it is very fast for some system programs to export 
the list to a log file, I guess maybe you can customize your own 
executable file, and use it like a CGI. Suppose this program can dump
the list and export an HTML file in your temporal directory, then you
can call this external command from your script (such as PHP) directly 
and after that load the exported static file. 

I believe loading a static file won't take that long.

Jian (James) Zhou

http://www.ee.ryerson.ca/~jzhou 
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list