From: J.P. K. <jp...@he...> - 2002-01-17 10:25:01
|
Ok, I've added a small delay in the loop on cgitelnet, and it now pauses for 1000th of a second at the end of each loop. I imagine that it ought to be event driven, but even this small change has dropped the CPU usage from 100% down to ~0.06%, and a quick test indicates that it isn't affecting the performance of the actual interface in a perceptible way. The code should probably be changed to be event driven rather than a polling loop, but that is more than I am planning on doing in the short term. Similarly I ought to use setitimer and getitimer, but I am lazy and using usleep. I have a few enhancements that should probably be made, like being able to select whether to attempt to use the javascript or not. Also, need to see how to stop it being quite as spaced out as it is at the moment, where it adds three lines between lines which are generated separately. Also the colours could do with sprucing up. ************************************************************************* * However, if noone has any objections I'm probably going to add it to * * a subdirectory in the Uglymug source tree. * ************************************************************************* I make that stand out, because I want to make sure you have all had a chance to object before I do it - you might feel it is in appropriate to add to this tree - my view is that a web interface is important, and that this does offer that option, thus unless someone is planning on adding their own this should become part of the project. Julian |