Nmap Development mailing list archives
Re: [PATCH] Use switch() instead of if/else if in tcpip.cc
From: Fyodor <fyodor () insecure org>
Date: Tue, 21 Feb 2006 15:39:50 -0800
On Tue, Feb 21, 2006 at 11:22:41AM -0800, Kris Katterjohn wrote:
This uses a switch statement instead of multiple if/else if statements which often seems to be, at least with gcc/g++, better performance-wise. On my box it slightly decreases the nmap binary size:
Thanks -- applied for the next version. Cheers, -F _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev
Current thread:
- [PATCH] Use switch() instead of if/else if in tcpip.cc Kris Katterjohn (Feb 21)
- Re: [PATCH] Use switch() instead of if/else if in tcpip.cc Fyodor (Feb 21)