[PATCH] ipsum_calc_block: Optimize size and speed

Martin Mares mj at ucw.cz
Fri Apr 23 15:03:34 CEST 2010


Hello!

> This is a much simpler and efficent impl. of the IP checksum.
> It is a dry port from Quagga and I have not tested it.

Are you convinced that your version is more efficient? The original version
processes 32 bits at a time, while your code does only 16 bits at a time. It might
be worth the saved branch, but do you have any benchmark proving that it
helps?

				Have a nice fortnight
-- 
Martin `MJ' Mares                          <mj at ucw.cz>   http://mj.ucw.cz/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
Hex dump:  Where witches put used curses...



More information about the Bird-users mailing list