mirror of
https://github.com/revanced/smali.git
synced 2025-05-29 20:20:12 +02:00
Use a for instead of foreach loop when iterating over MethodItems
This is measurably faster than the previous version
This commit is contained in:
parent
8582095cfb
commit
db49fd7714
@ -160,7 +160,10 @@ public class MethodDefinition {
|
|||||||
|
|
||||||
writer.write('\n');
|
writer.write('\n');
|
||||||
|
|
||||||
for (MethodItem methodItem: getMethodItems()) {
|
List<MethodItem> methodItems = getMethodItems();
|
||||||
|
int size = methodItems.size();
|
||||||
|
for (int i=0; i<size; i++) {
|
||||||
|
MethodItem methodItem = methodItems.get(i);
|
||||||
if (methodItem.writeTo(writer)) {
|
if (methodItem.writeTo(writer)) {
|
||||||
writer.write('\n');
|
writer.write('\n');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user