mirror of
https://github.com/revanced/smali.git
synced 2025-05-28 11:50:12 +02:00
MemoryDataStore: Efficiently multiply by 1.25
This commit is contained in:
parent
f1c116241a
commit
63896875d4
@ -65,7 +65,7 @@ public class MemoryDataStore implements DexDataStore {
|
||||
}
|
||||
|
||||
protected int getNewBufferSize(int currentSize, int newMinSize) {
|
||||
return (int)(newMinSize * 1.2);
|
||||
return newMinSize + (newMinSize >> 2);
|
||||
}
|
||||
|
||||
@Nonnull @Override public InputStream readAt(final int offset) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user