]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add notes on future optimizations
authorAlan T. DeKok <aland@freeradius.org>
Sun, 9 Mar 2025 16:43:25 +0000 (12:43 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 9 Mar 2025 18:05:24 +0000 (14:05 -0400)
src/lib/unlang/xlat_expr.c

index b5b4d40e671e24dee43ba3b153b723d7aeddaa14..3a184c4fa54fe92fba0856cee3c2dffee6546946 100644 (file)
@@ -1999,6 +1999,11 @@ static const bool logical_ops[T_TOKEN_LAST] = {
 
 /*
  *     These operators can take multiple arguments.
+ *
+ *     @todo - include T_ADD, T_SUB, T_MUL, T_AND, T_OR, T_XOR, here too.
+ *
+ *     This array should contain a function pointer to the code which either appends the results, or does
+ *     peephole optimizations to merge the arguments together.  This merging will reduce run-time effort.
  */
 static const bool multivalue_ops[T_TOKEN_LAST] = {
        [T_LAND] = true,