From: "Mauricio Fernández" Date: 2003-06-18T06:25:31+09:00 Subject: Re: Multiline comments? On Wed, Jun 18, 2003 at 04:10:16AM +0900, Dmitry V. Sabanin wrote: > Here is a little benchmark for comments that were discussed here, > > $ ruby1.7 comments.rb > user system total real > default comment 0.140000 0.000000 0.140000 ( 0.141877) > # comment 0.140000 0.000000 0.140000 ( 0.133724) > EOF comment 0.500000 0.020000 0.520000 ( 0.633371) > """ comment 0.520000 0.010000 0.530000 ( 0.579245) > > I know that times i'm repeating code are too big for default case we use > comments in, but if it will be used i.e. in a function executed from > 1..999999.each i guess runtime will be the same. > > > P.S. Maybe i'm totally wrong and it's not even worth speaking about it :) The benchmark doesn't take into account the speed hit during compilation (which is only done once). Not that it really matters, but results could be more meaningful if you used some evil arts (eval) :-) -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Do you mean to say that I can read mail with vi too? ;-) Didn't you know that? :r /var/spool/mail/jk -- debian-mentors