diff options
author | ache <ache@FreeBSD.org> | 2012-10-03 04:46:58 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2012-10-03 04:46:58 +0000 |
commit | cbaa91b07562a45d7a37b3fbaba57b77cbe94468 (patch) | |
tree | 95069d0b688fbfba33a5138446e584e2e06eb02a /contrib/llvm/tools/clang/lib/Driver/WindowsToolChain.cpp | |
parent | d142b7417c2aa871313728dddcbf50ce59f963b0 (diff) | |
download | FreeBSD-src-cbaa91b07562a45d7a37b3fbaba57b77cbe94468.zip FreeBSD-src-cbaa91b07562a45d7a37b3fbaba57b77cbe94468.tar.gz |
Optimize prev. commit for speed.
1) Don't iterate the loop from the environment array beginning each time,
iterate it under the last place we deactivate instead.
2) Call __rebuild_environ() not on each iteration but once, only at the end
of whole loop (of course, only in case if something is changed).
MFC after: 1 week
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Driver/WindowsToolChain.cpp')
0 files changed, 0 insertions, 0 deletions