From 4d8d81f144e72fe2e182d7569087f2a8c8c5b938 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Thu, 19 Jan 2023 10:56:16 +0100 Subject: Table prune routine doesn't walk over lists unless needed. If no channel is flushing, table prune doesn't walk over routes in nets and also doesn't walk over importing channel lists. This helps to alleviate the memory caching burdens a lot. --- nest/rt-attr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nest/rt-attr.c') diff --git a/nest/rt-attr.c b/nest/rt-attr.c index b41e56c2..761ec0d9 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -568,6 +568,8 @@ static struct resclass ea_class_ref_class = { static void ea_class_init(void) { + ASSERT_DIE(ea_class_global == NULL); + idm_init(&ea_class_idm, rta_pool, EA_CLASS_INITIAL_MAX); ea_class_global = mb_allocz(rta_pool, sizeof(*ea_class_global) * (ea_class_max = EA_CLASS_INITIAL_MAX)); -- cgit v1.2.3