Changeset 70921a2


Ignore:
Timestamp:
Oct 16, 2015 10:17:09 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
3411a7c
Parents:
dd36176
Message:

i2psnark: Don't balloon files on ARM (ticket #1684)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/Storage.java

    rdd36176 r70921a2  
    8787
    8888  private static final boolean _isWindows = SystemVersion.isWindows();
     89  private static final boolean _isARM = SystemVersion.isARM();
    8990
    9091  private static final int BUFSIZE = PeerState.PARTSIZE;
     
    14011402          // will make the file fairly unfragmented, on average, at least until
    14021403          // near the end where it will get exponentially more fragmented.
    1403           if (!_isWindows)
     1404          // Also don't ballon on ARM, as a proxy for solid state disk, where fragmentation doesn't matter too much.
     1405          // Actual detection of SSD is almost impossible.
     1406          if (!_isWindows && !_isARM)
    14041407              isSparse = true;
    14051408      }
Note: See TracChangeset for help on using the changeset viewer.