]> git.proxmox.com Git - mirror_frr.git/commit - lib/northbound.c
lib: reduce memory allocation when processing large config transactions
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 10 Oct 2019 01:20:26 +0000 (22:20 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Sat, 12 Oct 2019 00:18:36 +0000 (21:18 -0300)
commit0de19c0e0a8e4f8de4f3e27220f53fae33a6f817
tree2c1d469d0b1c34ca75a539d0f41c76cd7c56472d
parentfe3f2c61939a9dda27bf84feb4312f92bf1e1bb5
lib: reduce memory allocation when processing large config transactions

Remove the xpath field from the nb_config_cb structure in order
to reduce its size. This allows the northbound to spend less time
allocating memory during the processing of large configuration
transactions.

To make this work, use yang_dnode_get_path() to obtain the xpath
from the dnode field whenever necessary.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/northbound.c
lib/northbound.h