summaryrefslogtreecommitdiff
path: root/python/makefile.py
diff options
context:
space:
mode:
authorChristophe Gouault <christophe.gouault@6wind.com>2020-08-26 16:26:49 +0200
committerChristophe Gouault <christophe.gouault@6wind.com>2020-09-21 10:07:56 +0200
commit7c1119cb7a1c66028d5487ff66682383244f987d (patch)
treeb41faebe98e5456ba6a1cf4c19594d9aa0c95773 /python/makefile.py
parent8277d4b79662bde0ee09781ebfd4d2826b13f4f5 (diff)
lib: optimize vrf_id_to_name(VRF_DEFAULT) case
vrf_id_to_name() looks up in a RB_TREE to find the VRF entry, then reads the name. Avoid it for VRF_DEFAULT, which always exists and for which the translation is straightforward. Signed-off-by: Christophe Gouault <christophe.gouault@6wind.com>
Diffstat (limited to 'python/makefile.py')
0 files changed, 0 insertions, 0 deletions