Commit 703593a
src: reserve string allocation space early in URL::SerializeURL
This can be useful for performance when doing many string
concatenations.
PR-URL: #41759
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>1 parent 170a6cb commit 703593a
1 file changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
1545 | 1546 | | |
1546 | 1547 | | |
1547 | 1548 | | |
1548 | | - | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
1549 | 1566 | | |
1550 | 1567 | | |
1551 | 1568 | | |
| |||
1581 | 1598 | | |
1582 | 1599 | | |
1583 | 1600 | | |
| 1601 | + | |
1584 | 1602 | | |
1585 | 1603 | | |
1586 | 1604 | | |
| |||
0 commit comments