]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
if the xlat won't yield, don't create a new interpreter
authorAlan T. DeKok <aland@freeradius.org>
Thu, 6 Feb 2025 21:14:07 +0000 (16:14 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 7 Feb 2025 03:11:23 +0000 (22:11 -0500)
commitf3a858743dd3a5d6588789fb1bc20d011c93aa7b
tree1f17d6b727b469bba81a2c6d40127700169b82a8
parent06c91640696d902a00d8b4a4037ef996e181c9d8
if the xlat won't yield, don't create a new interpreter

i.e. if it's "pure", and doesn't have any external side effects.

which should save a fair bit on most xlat calls.

we also check if there's an interpreter.  which is only necessary
for the test.xlat code path.  This should arguably be changed
before a v4 release
src/lib/unlang/interpret.c
src/lib/unlang/xlat_eval.c