On Tue, Apr 29, 2003 at 02:38:42PM +0200, Uwe Pross wrote: > Hi there, > > On 29 Apr 2003 at 14:15:18 +0200, Dominik Vogt wrote: > > > I was able to reduce the size of navgen.cli and navgen.php by 25% > > by removing all comments (especially the comment markers waste a > > lot of bandwidth) and by indenting with one tab instead of two > > spaces. Using shorter variable names should save another couple > > of kBs... Yes, down from 16518 to 9860 bytes in navgen.php with > > one to four letter variable names. > > Comments are not bad :-) > > navgen.cli is only a helper script which is started by the > user only when something has changed on the navigation > structure. It generates a php array description which > contains the file relations on the web site. > navgen.php is obsolete. I have removed this from cvs by now. > > All *.php and *.inc files are executed at the server > site. This means comments and long variable names will not > be transmitted to the user and does therefore not effect > loading times. Only the echo and print commands in these > files produce traffic to the user (but navgen.cli never). > > If you want to reduce the traffic you need to look in the > php output not in the sources. But I don't think that there > is much which can be removed in there. > > BTW: I prefer spaces instead of tabs since they have > the same size indepent from editor settings. What do you use > for the fvwm souce files?
Tabs (= 8 spaces). Linux kernel coding style. Bye Dominik ^_^ ^_^ -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]