diff options
author | Adam Nemet <anemet@apple.com> | 2016-11-15 08:40:51 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2016-11-15 08:40:51 +0000 |
commit | 8741656efdd0b4f5a4dd6d2f6b7ad8d6e4f09725 (patch) | |
tree | 39e19a07bda28947eb8af3ba27ec6d1f84625f37 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 7beff42f8fb99e97fd54574346386b25eb2904dd (diff) | |
download | llvm-8741656efdd0b4f5a4dd6d2f6b7ad8d6e4f09725.zip llvm-8741656efdd0b4f5a4dd6d2f6b7ad8d6e4f09725.tar.gz llvm-8741656efdd0b4f5a4dd6d2f6b7ad8d6e4f09725.tar.bz2 |
[opt-viewer] Add support for libYAML for faster parsing
This results in a speed-up of over 6x on sqlite3.
Before:
$ time -p /org/llvm/utils/opt-viewer/opt-viewer.py ./MultiSource/Applications/sqlite3/CMakeFiles/sqlite3.dir/sqlite3.c.opt.yaml html
real 415.07
user 410.00
sys 4.66
After with libYAML:
$ time -p /org/llvm/utils/opt-viewer/opt-viewer.py ./MultiSource/Applications/sqlite3/CMakeFiles/sqlite3.dir/sqlite3.c.opt.yaml html
real 63.96
user 60.03
sys 3.67
I followed these steps to get libYAML working with PyYAML: http://rmcgibbo.github.io/blog/2013/05/23/faster-yaml-parsing-with-libyaml/
llvm-svn: 286942
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions