1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 08:29:04 +00:00
Files
nmap/scripts
dmiller 40f36a4e3e Some string optimizations in NSE
Changes fall into these categories:

1. Avoid pathological string building. Loops over x = x .. "foo" can
become very slow. Instead, use strbuf.lua, table.concat, or just one
continuous concatenation; a = x .. y .. z is one operation, better than
a = x .. y; a = a .. z

2. Use hex-escaped strings instead of string.char. I find this more
readable in many cases, and it avoids a table lookup and function call.

3. Don't duplicate code. A few libraries and scripts had re-implemented
stdnse.generate_random_string or openssl.rand_bytes.
2014-09-03 04:49:54 +00:00
..
2014-03-07 23:14:55 +00:00
2014-03-07 23:14:55 +00:00
2014-02-19 04:15:46 +00:00
2014-02-19 04:15:46 +00:00
2014-02-03 16:49:26 +00:00
2014-06-26 20:12:54 +00:00
2014-09-03 04:49:47 +00:00
2014-08-03 01:18:13 +00:00
2014-09-03 04:49:54 +00:00
2014-02-19 04:15:46 +00:00
2014-02-19 04:15:46 +00:00
2014-02-19 04:15:46 +00:00
2014-02-19 04:15:46 +00:00
2014-08-27 19:41:32 +00:00
2012-05-27 08:53:32 +00:00
2014-02-19 04:15:46 +00:00
2014-02-19 04:15:46 +00:00
2014-08-18 03:12:00 +00:00
2014-02-19 04:15:46 +00:00
2014-08-11 23:32:56 +00:00
2014-08-12 02:38:20 +00:00
2014-09-03 04:49:54 +00:00
2014-09-03 04:49:54 +00:00
2014-02-03 16:49:26 +00:00
2014-08-02 02:56:31 +00:00
2014-02-19 04:15:46 +00:00
2014-02-19 04:15:46 +00:00