Commit 5f91649
authored
Optimize std::__tree::__assign_multi to insert the provided range at the end of the tree every time (llvm#131030)
This improves performance for the copy-assignment operators of associative containers such as `std::map`.
This optimization already exists in other places in the codebase, and seems to have been missed here.1 parent f427890 commit 5f91649
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1411 | 1411 | | |
1412 | 1412 | | |
1413 | 1413 | | |
| 1414 | + | |
1414 | 1415 | | |
1415 | | - | |
| 1416 | + | |
1416 | 1417 | | |
1417 | 1418 | | |
1418 | 1419 | | |
| |||
0 commit comments