Bug 17961 - MINIMAL_SYMBOL_HASH_SIZE needs to scale
Summary: MINIMAL_SYMBOL_HASH_SIZE needs to scale
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: symtab (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2015-02-12 01:04 UTC by dje
Modified: 2015-02-12 01:04 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:
Project(s) to access:
ssh public key:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dje 2015-02-12 01:04:02 UTC
I was profiling gdb trying to see why "break (anonymous namespace):foo" was slow.
The problem turned out to be due to a couple of reasons.

One of them is that this program is big.
Big as in "nm $binary | wc" shows ~4M symbols.

Currently MINIMAL_SYMBOL_HASH_SIZE is the constant 2039.

This value needs to scale.