]> git.ipfire.org Git - thirdparty/bird.git/commit
Allocate the normalization buckets on stack
authorMaria Matejka <mq@ucw.cz>
Tue, 24 Dec 2024 15:16:55 +0000 (16:16 +0100)
committerMaria Matejka <mq@ucw.cz>
Thu, 9 Jan 2025 09:08:27 +0000 (10:08 +0100)
commitffa57a430317934abae8403954ab29c43862f491
treee17a92358e5743c5d3ea130352a9368691588c17
parent4f7899e3cb17ee67875e53512db25ba5aa1dc236
Allocate the normalization buckets on stack

Even though allocating from tmp_linpool is quite cheap,
it isn't cheap when the block is larger than a page, which is the case here.
Instead, we now allocate just the result which typically fits in a page,
avoiding a necessity of a malloc().
nest/rt-attr.c