Index: build/gyp_chromium |
diff --git a/build/gyp_chromium b/build/gyp_chromium |
index f87761dbd6bb50b47bfa0fd860fe48934974cb1d..b8fe82dc5cba08e34c16e772e9bf7d9196fe5b27 100755 |
--- a/build/gyp_chromium |
+++ b/build/gyp_chromium |
@@ -188,6 +188,13 @@ def additional_include_files(supplemental_files, args=[]): |
if __name__ == '__main__': |
+ # Disabling garbage collection saves about 1 second out of 16 on a Linux |
+ # z620 workstation. Since this is a short-lived process it's not a problem to |
+ # leak a few cyclyc references in order to spare the CPU cycles for |
+ # scanning the heap. |
+ import gc |
+ gc.disable() |
+ |
args = sys.argv[1:] |
use_analyzer = len(args) and args[0] == '--analyzer' |