Commit ca3d5e9
perf: reserve capacity for vector passed to poly::get_variables()
Reserving capacity for the input vector with a fixed size to be passed
to get_variables() prevents unnecessary reallocations during push_back
operations.1 parent 502e34d commit ca3d5e9
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
| 206 | + | |
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
| |||
617 | 619 | | |
618 | 620 | | |
619 | 621 | | |
| 622 | + | |
620 | 623 | | |
621 | 624 | | |
622 | 625 | | |
| |||
627 | 630 | | |
628 | 631 | | |
629 | 632 | | |
| 633 | + | |
| 634 | + | |
630 | 635 | | |
631 | 636 | | |
632 | 637 | | |
| |||
1679 | 1684 | | |
1680 | 1685 | | |
1681 | 1686 | | |
| 1687 | + | |
1682 | 1688 | | |
1683 | 1689 | | |
1684 | 1690 | | |
| |||
1808 | 1814 | | |
1809 | 1815 | | |
1810 | 1816 | | |
| 1817 | + | |
1811 | 1818 | | |
1812 | 1819 | | |
1813 | 1820 | | |
| |||
0 commit comments