Commit 54ed1aa
committed
Vec micro-opts
Summary
4 files modified with Vec::with_capacity() optimizations:
| File | Change | Capacity |
|-------------------------------------|-------------------------------|--------------------------------------------|
| awk/interpreter/mod.rs:64 | gather_values | count as usize |
| awk/interpreter/mod.rs:76 | print_to_string | argc as usize |
| text/cut.rs:129 | cut_bytes | line.len() |
| cc/arch/x86_64/codegen.rs:1901 | stack_arg_indices | insn.src.len() |
| cc/ir/linearize.rs:841-845 | struct_params, complex_params | func.params.len() |
| cc/arch/x86_64/codegen.rs:3737-3753 | 7 inline asm arrays | operand_count, outputs.len(), inputs.len() |1 parent c5fbccf commit 54ed1aa
File tree
4 files changed
+16
-13
lines changed- awk/interpreter
- cc
- arch/x86_64
- ir
- text
4 files changed
+16
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1898 | 1898 | | |
1899 | 1899 | | |
1900 | 1900 | | |
1901 | | - | |
| 1901 | + | |
1902 | 1902 | | |
1903 | 1903 | | |
1904 | 1904 | | |
| |||
3734 | 3734 | | |
3735 | 3735 | | |
3736 | 3736 | | |
3737 | | - | |
3738 | | - | |
3739 | | - | |
| 3737 | + | |
| 3738 | + | |
| 3739 | + | |
| 3740 | + | |
3740 | 3741 | | |
3741 | 3742 | | |
3742 | 3743 | | |
3743 | | - | |
| 3744 | + | |
3744 | 3745 | | |
3745 | 3746 | | |
3746 | 3747 | | |
3747 | | - | |
| 3748 | + | |
3748 | 3749 | | |
3749 | 3750 | | |
3750 | 3751 | | |
3751 | | - | |
3752 | | - | |
| 3752 | + | |
| 3753 | + | |
3753 | 3754 | | |
3754 | 3755 | | |
3755 | 3756 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
838 | 838 | | |
839 | 839 | | |
840 | 840 | | |
841 | | - | |
| 841 | + | |
| 842 | + | |
842 | 843 | | |
843 | | - | |
| 844 | + | |
| 845 | + | |
844 | 846 | | |
845 | 847 | | |
846 | 848 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments