Commit 2625783
authored
[Xamarin.Android.Build.Tasks] Small refactoring to
The `method.Parameters.Count == 0` check should be faster than LINQ's `Any` call
(`CustomAttributes.Any`). So moved it first.
Moved some variables near their usage, particularly, `GetILProcessor` which may
allocate unnecessarily if `GC.KeepAlive(...)` call was already found. It's not a
big of problem though as it's not very common.AddKeepAlives method (#8423)1 parent 03018e0 commit 2625783
File tree
1 file changed
+8
-7
lines changed- src/Xamarin.Android.Build.Tasks/Linker/MonoDroid.Tuner
1 file changed
+8
-7
lines changedLines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | 95 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 96 | | |
102 | 97 | | |
103 | 98 | | |
| |||
111 | 106 | | |
112 | 107 | | |
113 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
0 commit comments