mirror of
https://github.com/nmap/nmap.git
synced 2025-12-14 03:39:02 +00:00
Storing a pointer instead of the whole struct payload enables us to reuse the same struct for as many ports as the payload defines, saving memory as well as the time to copy the struct and its std::string member. This commit also avoids several copy constructions and deletions of the payload vector for each port defined in the file.
110 KiB
110 KiB