Home page logo

nmap-dev logo 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.


Sent through the nmap-dev mailing list

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]