3 ms·
Oh, of course. Brain fart moment. I pattern matched (ha!) to code I've seen too much where that's at compile time. Yeah, runtime here works but I agree is stil
by losvedir 3y ago
Oh, of course. Brain fart moment. I pattern matched (ha!) to code I've seen too much where that's at compile time.
Yeah, runtime here works but I agree is still not as good as Application.get_env. Aside from (IMO) code clarity reasons, last I checked it is (or can be) much quicker. Application is a quick ETS lookup, while System reaches out to the system and I forget the details but at one point that was much slower.