mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 05:01:29 +00:00
Retransmitting does not change the set of incomplete hosts, so there's no need to use a map to store the current position in the outstanding probes queue. Using a vector is much faster. Additionally, improper use of std::map::find() and std::map::operator[] meant that the O(logN) lookup was happening 4 times for a single host for each iteration through the loop. Complexity for N targets is now O(N), not O(N logN)
103 KiB
103 KiB