Effect on speed of comments in bash script loops?

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Thu Nov 15 20:50:20 UTC 2012


On Thu, Nov 15, 2012 at 03:37:13PM -0500, Scott Elcomb wrote:
> i pretty sure there'll be better answers from more knowledgeable folks
> but I'm curious... is there a noticeable difference in execution
> times?
> 
> time /path/to/master
> time /path/to/working

I highly doubt there is any difference.  If the script was totally
linear and had no loops, then perhaps it would take slightly longer to go
through the one with comments since there is more script to parse through.
Add a loop though, and I doubt it matters anymore.

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list