Read dictionaries during the open host call instead of once for each get call. This improves viceroy performance for large dictionaries, and more closely matches the semantics of the production environment, as changes made while the dictionary is open won't be reflected in subsequent get calls.
Additionally, remove the DictionaryName newtype, as it wasn't offering anything over using a String directly.
Read dictionaries during the
open
host call instead of once for eachget
call. This improves viceroy performance for large dictionaries, and more closely matches the semantics of the production environment, as changes made while the dictionary is open won't be reflected in subsequentget
calls.Additionally, remove the
DictionaryName
newtype, as it wasn't offering anything over using aString
directly.co-authored-by: Jamey Sharp jsharp@fastly.com