You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a Root property in config, which is evaluated each time it is accessed, and getter is performing merging of all fallbacks into single config to use for lookup.
This Root is used in all lookups, so each lookup is performing lots of merging and allocations when there are lots of fallback values with lots of keys.
Since configs are immutable by design, should evalutate Root only once after fallback is added. So there will be only one allocation on new config creation, and lookups will be cheap.
The text was updated successfully, but these errors were encountered:
We have a
Root
property in config, which is evaluated each time it is accessed, and getter is performing merging of all fallbacks into single config to use for lookup.This
Root
is used in all lookups, so each lookup is performing lots of merging and allocations when there are lots of fallback values with lots of keys.Since configs are immutable by design, should evalutate
Root
only once after fallback is added. So there will be only one allocation on new config creation, and lookups will be cheap.The text was updated successfully, but these errors were encountered: