This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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] | |
Definitely. That is exactly my point.There is wasted work because of the two lookups, but perhaps there's a way to further improve the situation by exposing the common part of find() and insert(), namely the hash computation. If there were a way to do the find(), and somehow reuse the hash computed by the find() to do the insert() more quickly, then I think Peter's approach would be an even bigger win.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |