pidl: calculate subcontext_size only once per pull
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 28 Dec 2023 10:07:56 +0000 (23:07 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 8 Feb 2024 02:48:44 +0000 (02:48 +0000)
commit9811762775b28e16035afb2c319b55c4bf3699d3
tree281265b33ee79630c730ede4d657146a29992b25
parent5fa663766548eac2cc5932ae03d03b79ad1751b5
pidl: calculate subcontext_size only once per pull

For security_ace_coda in security.idl, the sub-context size is
involves a slightly non-trivial function call which returns a constant
value.

In all other cases, a constant expression is used, and this makes
no difference.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15574
pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm