diff options
author | Andi Kleen <ak@gcc.gnu.org> | 2024-12-26 13:05:57 -0800 |
---|---|---|
committer | Andi Kleen <ak@gcc.gnu.org> | 2025-02-02 21:59:22 -0800 |
commit | baf26fccfb51fa54fcf7c668b96cae4cdbe574b3 (patch) | |
tree | 4de5eea1809b7c13e618664ae880e26276e6f298 /gcc/gdbhooks.py | |
parent | 33acec612423efd2d9db9ffc808c4d103840dcd2 (diff) | |
download | gcc-baf26fccfb51fa54fcf7c668b96cae4cdbe574b3.zip gcc-baf26fccfb51fa54fcf7c668b96cae4cdbe574b3.tar.gz gcc-baf26fccfb51fa54fcf7c668b96cae4cdbe574b3.tar.bz2 |
Size input line cache based on file size
While the input line cache size now tunable it's better if the compiler
auto tunes it. Otherwise large files needing random file access will
still have to search many lines to find the right lines.
Add support for allocating one line anchor per hundred input lines.
This means an overhead of ~235k per 1M input lines on 64bit, which
seems reasonable.
gcc/ChangeLog:
PR preprocessor/118168
* input.cc (file_cache_slot::get_next_line): Implement
dynamic sizing of m_line_record based on input length.
* params.opt: (param_file_cache_lines): Set to 0 to size
dynamically.
Diffstat (limited to 'gcc/gdbhooks.py')
0 files changed, 0 insertions, 0 deletions