Maybe I’m understanding it wrong but you mean that the significant size of the constants set should be up to 100 approximately to consider using a struct this way?
If it is okay using it this way for a small constant set then could it be passed several times throughout the functions of a module without a severe speed or memory penalty?
For example, if the functions do different things but do need those constants for different computations:
mutable struc Constants
...
end
function compute_this(x, params=Constants() )
...
end
function compute_that(x, y, params=Constants() )
...
end
# more functions below ...