This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Am Freitag, 8. März 2019, 22:13:52 MEZ hat Tom Tromey <tom@tromey.com> Folgendes geschrieben: > >>>>> "Hannes" == Hannes Domani via gdb <gdb@sourceware.org> writes: > > Hannes> For the case of 'b some_function', with the application I'm testing: > Hannes> - startup time with the call of cp_canonicalize_string_no_typedefs(): 1m 25s > Hannes> - startup time without this call: 27s > > Wow. > > Hannes> In my personal build I've changed this: > Hannes> - only call cp_canonicalize_string_no_typedefs() if it's not a simple function > Hannes> name (like 'function_name' or 'Class::member_function') > Hannes> - only call expand_symtabs_matching() if the lookup_name doesn't contain a '.' > > Hannes> I admit that I don't fully understand what could break with these changes, > Hannes> but the speedup makes it worth for me right now. > > Could you send the diff? Both are attached. As said before, the first improves the startup time (with 1 pending function breakpoint) from 1m 25s to 27s. And the second improves it (with 1 pending source:line breakpoint) from 27s to 13s. Regards Hannes Domani
Attachment:
0001-Don-t-expand-typedefs-for-functions-without-argument.patch
Description: Binary data
Attachment:
0002-Don-t-expand-symtabs-when-looking-for-a-filename.patch
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |