summaryrefslogtreecommitdiff
path: root/ripd/rip_errors.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2024-07-20 18:30:06 -0700
committerDonald Sharp <sharpd@nvidia.com>2024-07-31 08:08:53 -0400
commit4bc41193e810d3c93fc0ff0a5a7d7fe0f18c669b (patch)
treee1439c74168209a2771a27121fb292d50e76ffc4 /ripd/rip_errors.c
parente26c580588b3689463c76aa96888147e53a48885 (diff)
vtysh, lib: preprocess CLI graphs
Store a parsed and built graph of the CLI nodes in vtysh, rather than parsing and building that graph every time vtysh starts up. This provides a 3x to 5x reduction in vtysh startup overhead: `vtysh -c 'configure' -c 'interface lo' -c 'do show version'` - before: 92.9M cycles, 1114 samples - after: 16.5M cycles, 330 samples This improvement is particularly visible for users scripting `vtysh -c` calls, which notably includes topotests. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ripd/rip_errors.c')
0 files changed, 0 insertions, 0 deletions