So it seems I really learned something useful during my first CS year...

I have reworked the search function, it now uses 'binary searching'. This greatly reduces the search times. It needs some debugging, but the first results seem promising. I have also changed the array loading code, it should load faster this way (due to the way arrays are handled internally). The file size is about 56kB (which is just over twice the size of the PHP main page, without images).

You can see the result at:

[ http://lumumba.luc.ac.be/cheezy/misc/php/quickref_bs.html ]

I'm not saying this should go on the main site, but if I would have to choose between a swf and this js solution, I would chose JavaScript.

Hm, this is much better :) If someone would be able to come up with some compression for the array data (no not gzip encoding, it will not work for our pages) and the results would be displayed on a popup layer (to take less space), then I would very much stand behind this solution :) I have suggested SWF for the first time because the included compression, which I don't know of any equivalent for JS.


Goba

Reply via email to