[Bug symtab/27937] Performance regression of 8% due to assert in dwarf/read/attribute.h

tromey at sourceware dot org sourceware-bugzilla@sourceware.org
Tue Jun 1 21:12:29 GMT 2021


https://sourceware.org/bugzilla/show_bug.cgi?id=27937

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Simon Marchi from comment #1)
> I sometimes wonder if we should have a gdb_assert version that is only
> enabled in development builds, that we could use in very hot paths like this
> one, without affecting performance of production builds.

Seems reasonable to me, and especially for this assert, which just introduces
a new check that didn't even exist in earlier versions.  That is, removing
the assert or having it not run in production is identical to the status quo
ante.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list