]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
Improve the performance of `if ('rcode')` by doing the string to integer conversion...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 19 May 2024 17:10:07 +0000 (11:10 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 19 May 2024 17:12:22 +0000 (11:12 -0600)
commit6b1aa7b2507ccb3deec6d07d959e683908c65c52
treeecf08cc61a65bb1e3ea10f86b9f051fc8a612e54
parent845b478fa1d6f96b9dc418aa94a608fe4c7f66cc
Improve the performance of `if ('rcode')` by doing the string to integer conversion, once, on startup

This also involves splitting the function into two, one that does the comparison, and one that can return the current rcode.
src/lib/unlang/xlat_expr.c
src/tests/unit/condition/base.txt
src/tests/unit/xlat/cond_base.txt
src/tests/unit/xlat/purify.txt