commit | 10bac80195cf5a781da6e4415e6580fd7080f734 | [log] [tgz] |
---|---|---|
author | David Lamparter <equinox@opensourcerouting.org> | Tue May 05 11:10:20 2015 +0200 |
committer | David Lamparter <equinox@opensourcerouting.org> | Tue May 05 11:10:42 2015 +0200 |
tree | 440ed474bc54a2a5d355369e928b4bd8bc315e97 | |
parent | 81b139bdd530adda045d22a4daf0054b89703dab [diff] |
lib/cli: reduce strcmp in CLI hot paths Er, no idea how anyone could ever have thought that it would be a good idea to have a zillion of strcmp() calls in the CLI's active paths, just to compare against things like "A.B.C.D". Reduces 40k prefix list load time from 1.65s to 1.23s (1.34:1). Acked-by: Paul Jakma <paul@jakma.org> [v2: killed CMDS_* macros] Signed-off-by: David Lamparter <equinox@opensourcerouting.org>