envdir icon indicating copy to clipboard operation
envdir copied to clipboard

._get() should cache the content of file in memory

Open amitu opened this issue 11 years ago • 6 comments

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.

amitu avatar Dec 05 '13 15:12 amitu

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.

jezdez avatar Dec 05 '13 16:12 jezdez

I mean "never" until you use __setitem__ which then would require a cache invalidation.

jezdez avatar Dec 05 '13 16:12 jezdez

Cool. I will try to work up a pull request.

amitu avatar Dec 05 '13 16:12 amitu

@amitu Have you came up with something in this regard?

blueyed avatar Jul 26 '14 22:07 blueyed

@amitu ping.

blueyed avatar Nov 23 '15 23:11 blueyed

Not yet. I am planning to work on this over the weekend.

amitu avatar Dec 03 '15 09:12 amitu