If it's always the same keys, maybe build an immutable type at the very beginning?
On Sunday, April 24, 2016, Michael Louwrens <[email protected]> wrote: > I use a dictionary to store all the various variables I use in an > algorithm. > > So, there are many functions which look like: > function foo(input::Dict) > x =2*input[:bar] > end > > Input is created once and never changed. > Would abusing Val{T} be an option here? There will only be one value for > `input[:bar] for the entire run which takes > 2 hours. > > Thanks! >
