[Bug c++/50495] Optimize exact matches in overload resolution
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 23 16:05:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50495
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-09-23
Ever Confirmed|0 |1
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-09-23 15:58:12 UTC ---
I recently made a number of improvements that will be in 4.7.0; see PR 48481.
It certainly would be possible to do more optimization:
1) Once we have seen a valid exact match, quickly disqualify any later
candidates that are not.
2) Try to find that exact match faster with a hash or splay tree lookup.
#2 would only be useful for large overload sets, but #1 could be a minor
optimization for all code.
More information about the Gcc-bugs
mailing list