summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-09-29 10:48:57 -0400
committerBen Gamari <ben@smart-cactus.org>2021-09-29 10:56:17 -0400
commite3054217becfd4eb2904ba208b71ece665d90e81 (patch)
treeaea94784365ba28abb1f94913a56410f9d2e8f73 /includes
parentf66eaefd5d4a3e0c0822dd3678e5e55a7d972a0d (diff)
downloadhaskell-wip/drop-getEnvironment.tar.gz
compiler: Avoid unnecessary getEnvironment usagewip/drop-getEnvironment
In general getEnvironment can be quite expensive since it must decode the entire environment (which may be large) into a String. On non-Windows platforms Previously `GHC.SysTools.Process.getGccEnv`, which exists only to work around a toolchain bug on Windows (#1110), called `getEnvironment` on POSIX only to then pass the environment unmodified, incurring unnecessary cost. Don't do this.
Diffstat (limited to 'includes')
0 files changed, 0 insertions, 0 deletions