Why I cannot use tuple as application env key?
bengt
cean.ebengt@REDACTED
Wed Oct 28 11:37:12 CET 2020
Greetings,
I use application:get_env only once (in application callback module during start/2), to move config from application env to where it is used.
At this time it is possible to change layout/keys as much as needed.
Doing it repeatedly was not something I considered in my suggestion. Sorry.
Best Wishes,
bengt
> On 27 Oct 2020, at 08:11, Max Lapshin <max.lapshin@REDACTED> wrote:
>
>> The key is documented as being atom. Unfortunately why is not documented.
>>
>
> Yes, and there is a simple check in application_controller that
> disallow anything except atom.
>
>> {backend, [{Name, Configuration}]}
>
> This will give me full proplist on each access. I have tried it with
> thousand of elements and found that GC is going mad on high traffic.
More information about the erlang-questions
mailing list