sorting

Started by eddier, March 09, 2005, 01:16:09 PM

Previous topic - Next topic

newdep

#15
I like the working of the script!

You still can use the CGI script to create partly the HTML pages based

on the selection from the webuser.. You already have the data so actualy

you can build anything with it...
-- (define? (Cornflakes))

Lutz

#16
This is what I get in Florida on a DSL



> (time (get-url "http://www.bmc.edu/cgi-bin/alum.cgi">http://www.bmc.edu/cgi-bin/alum.cgi" ))

2672

> (time (get-url "http://www.bmc.edu/cgi-bin/alum.cgi">http://www.bmc.edu/cgi-bin/alum.cgi" ))

2750

> (time (get-url "http://www.bmc.edu/">http://www.bmc.edu/" ))

625

> (time (get-url "http://www.bmc.edu/">http://www.bmc.edu/" ))

656



The page generated by the CGI is about 97K



Lutz



ps: completely intuitive to use

eddier

#17
Thanks Norman and Lutz.



The Alumnae requested that the columns be able to sort. And of course they also wanted the index. And many wanted to be able to print the table.



Good about being intuitive to use. I was going to use a scrolling table but then I have to add an extra part to the script to be able to print correctly. Then, I thought about frames to get the scrolling columns but there are never going to be enough columns to get mixed up about what each column stands for so, "Simple is Better."



Thanks for the comparison of the html page speed from the Web site and from the cgi. There is quite a bit of speed difference. Since a large number of users are still using dialup, I'm going to take Norman's advice and pre-build the pages. It will be quite easy to combine the newLISP scripts already on the client machines to collect the data and ftp with the script to generate the html.



Thanks again guys for you help.



Eddie

eddier

#18
No more CGI. I combined the two scripts and just generate the pages and ftp them to the site. If there had been many columns then I would have buffered the pages.



Eddie

Lutz

#19
I wonder if prebuilt pages really  would have make a difference, the size of the page was 97Kbyte, that is about 1 sec if your server has an upload bandwidth of ~ 1 Mbit/sec, add to this the work the browser has to do and it seems that the CGI processing perhaps was only a small time in the whole measurement.



Lutz

eddier

#20
I have no clue. None from this side. But, I think creating the pages on a client machine and dumping them on the server means less security risks and then I'm guaranteed that it will be fast enough. I'm just going to copy the script to the other client and add a header file for each type of directory or list that is created.



Eddie

Lutz

#21
In the next version 8.4.5 you can specify any operator, function or anonymous function as comparison function in the second parameter of 'sort'



Lutz

eddier

#22
This is the way the various sorts in MzScheme's libraries work. I have actually had three occasions that I recall that a sort like this was needed. Thanks Lutz!



Eddie