public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Timothy Miller <miller@techsource.com>
To: Matt Mackall <mpm@selenic.com>
Cc: Chuck Ebbert <76306.1226@compuserve.com>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] only use 48-bit lba when necessary
Date: Thu, 17 Apr 2003 14:49:13 -0400	[thread overview]
Message-ID: <3E9EF729.4000101@techsource.com> (raw)
In-Reply-To: 20030417160530.GD23277@waste.org



Matt Mackall wrote:

>  
>
>>>      
>>>
>>What's ugly about them? 
>>    
>>
>
>It doesn't pass the test of "would I use it if I didn't think it was
>faster?"
>
>As I pointed out, your variant is not faster with a reasonable
>compiler, only less obvious. And none of this sort of optimization
>will ever be measurably better in the IO path anyway. But every one of
>these false optimizations is a barrier to the understanding that will
>allow real cleanups to make fundamental improvements.
>
>  
>
Agreed, but in this case, it's simply a matter of culture.  If some of 
these things were more common, then they would pass the test, like the 
use of "!!".

One thing for your side of the argument is that if something works, 
don't mess with it and risk breaking it, especially if it has no 
practical impact on performance.

If we really wanted to improve readability, we could start doing 
something like Windows developers are so fond of doing and use Hungarian 
Notation.  I know it's ugly, and we eschew anything to do with 
Microsoft, but once you get used to it, it can be very helpful in 
keeping things straight.



  reply	other threads:[~2003-04-17 18:27 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-04 17:02 [PATCH] only use 48-bit lba when necessary Chuck Ebbert
2003-04-17 14:20 ` Matt Mackall
2003-04-17 15:24   ` Timothy Miller
2003-04-17 16:05     ` Matt Mackall
2003-04-17 18:49       ` Timothy Miller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-04-18  9:50 Chuck Ebbert
2003-04-18  3:32 linux-kernel
2003-04-18  1:34 Chuck Ebbert
2003-04-18  4:18 ` Matt Mackall
2003-04-18 14:34 ` Timothy Miller
2003-04-04 12:29 Jens Axboe
2003-04-04 13:19 ` Juan Quintela
2003-04-04 13:22   ` Jens Axboe
2003-04-04 15:48     ` Juan Quintela
2003-04-04 15:54       ` Jens Axboe
2003-04-04 17:06         ` John Bradford
2003-04-04 14:40 ` Andries Brouwer
2003-04-04 15:13   ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E9EF729.4000101@techsource.com \
    --to=miller@techsource.com \
    --cc=76306.1226@compuserve.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpm@selenic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox