mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Random access into FingerPrints and FingerTests using gettestbyname and getattrbyname was taking non-negligible time when multiplied by the number of fingerprints in the database. Instead, sort the tests by name and sort the attributes within each test. We may then compare two lists by walking both of them in order, not having to look up the same element twice.
10 KiB
10 KiB