mirror of
https://github.com/KumoCorp/kumomta.git
synced 2026-11-17 08:07:36 +00:00
Add some internal functions that return the set of valid field names for the various make_XXX config building lua functions so that we can change the cost of validating the helper config types via typing.lua from O(N) relatively expensive individual calls through lua/mlua/rust into O(1) lua table lookups. This takes the cost of loading a 2000 entry queues.toml down from an uncomfortable 300ms to below 50ms and the cost of the get_queue_config event handler down from 240us to 10us. The same pattern is also applied to listener_domains.lua and sources.lua.