diff options
author | Josh Gao <jmgao@google.com> | 2016-11-08 22:21:31 -0800 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2016-11-09 18:10:15 -0800 |
commit | b5c496346f19cba410b3191b9c3297507bba854a (patch) | |
tree | f5e01af0d1c789c719a83fd4c89ec8f3f0b0aafe /libc/stdio/stdio_ext.cpp | |
parent | 16016df79f846d6d21266c3b1dce1e7c24dc4be1 (diff) |
versioner: cache -cc1 flags generated by the clang Driver.
Profiling showed that majority of time spent by versioner was being
spent in the x86 and x86_64 driver statting random files in /usr/lib,
looking for a toolchain. Hardcode a list of per-target flags which
correspond to a subset of the ones generated by clang, and use those
instead of calling out to Driver.
This changes the result of `time versioner` from:
versioner 156.57s user 1180.08s system 4109% cpu 32.525 total
to:
versioner 109.12s user 17.43s system 2433% cpu 5.201 total
Bug: http://b/32748936
Test: python run_tests.py
Change-Id: I7d254a105bf1a283cbba0546321b04e308e703d1
Diffstat (limited to 'libc/stdio/stdio_ext.cpp')
0 files changed, 0 insertions, 0 deletions