[Dctrl-tools-devel] [PATCH] lib/paragraph.c (para_parse_next): Use gotos, not a state variable

Antti-Juhani Kaijanaho antti-juhani at kaijanaho.fi
Wed Nov 7 20:08:20 UTC 2007


On Thu, Nov 01, 2007 at 12:18:11AM +0200, Antti-Juhani Kaijanaho wrote:
> On modern processors, unconditional jumps are always better than
> conditional jumps.  This rewrite eliminates a set of conditional
> jumps by encoding the states as goto targets and not using a
> while-switch strategy.
> 

I've pushed this one, as it seems to be an universal performance
improvement.

-- 
Antti-Juhani Kaijanaho, Jyväskylä, Finland
http://antti-juhani.kaijanaho.fi/newblog/
http://www.flickr.com/photos/antti-juhani/



More information about the Dctrl-tools-devel mailing list