envdir
envdir copied to clipboard
._get() should cache the content of file in memory
If a lookup happens inside a loop, this can severely affect the performance of the loop, compared to if the lookup was happening on environment variable.
Hm, maybe, that would probably be safer also in comparison to the original envdir's behavior -- modifying the environment once and then never change it again.
I mean "never" until you use __setitem__
which then would require a cache invalidation.
Cool. I will try to work up a pull request.
@amitu Have you came up with something in this regard?
@amitu ping.
Not yet. I am planning to work on this over the weekend.