getenv - reduce continually calling getenv for the same vars do once
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 8 Aug 2019 22:55:40 +0000 (23:55 +0100)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 12 Aug 2019 07:30:58 +0000 (16:30 +0900)
commit5e6f78b7cdd593dabeef2e387e113b2565461bd9
tree3394e43e20b8798132c7c953910d424aa2438b03
parenteb3581a82883474430d21cadaec512f508c1bf68
getenv - reduce continually calling getenv for the same vars do once

do it once and remember the result from the first one. drops overhead
for sure by a chunk i actually could see in perf reports like about 1-2%
of cpu...
src/lib/edje/edje_cache.c
src/lib/eina/eina_mempool.c
src/lib/eio/eio_monitor.c
src/lib/elementary/elm_config.c
src/lib/evas/file/evas_module.c
src/modules/evas/engines/gl_common/evas_gl_texture.c