Optimizations.

Wes Peters wes at softweyr.com
Thu May 15 14:07:30 PDT 2003


On Thursday 15 May 2003 08:19, Pawel Jakub Dawidek wrote:
> On Thu, May 15, 2003 at 07:01:44AM -0700, Mooneer Salem wrote:
> +> Interesting. Wouldn't some optimizations only produce negliable
> results +> though (in relation to the
> +> amount of mess created in the code), especially since PC
> technology has come +> a long way?
>
> Exactly! This is todays point of view. No! Not everything could be
> optimize by compiler and I'm not saying that algorythms optimization
> isn't important - it is of course much more important than code
> optimization and I'm talking about it to, but micro optimization is
> needed as well.
>
> Messy code? Why? People skilled in optimization know which parts of
> code should be really optimized and which aren't important from
> performance point of view at all (code profiling?). Good optimized
> code shouldn't be ugly, ehh.

People skilled in optimization know to profile the code and find what is 
slowing real, actual applications down before attempting to profile 
anything.  You can't imagine how uninterested any FreeBSD developer is 
in optimizing getuid() so it will out-perform Linux on some completely 
braindead benchmark.  Show me an application that is getuid() 
performance bound and I'll show you an application that is so poorly 
written as to be meaningless.

You obviously feel passionate about this issue.  Why don't you pursue it 
yourself?  Are you looking for a few good programmers to join you, or 
perhaps someone to tutor you?  If so, say it up front, and I'll just 
bet somebody will step forward to help out.

-- 
         "Where am I, and what am I doing in this handbasket?"

Wes Peters                                              wes at softweyr.com




More information about the freebsd-hackers mailing list