You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gzip the bins and then unzip during download. The downloadFile function in the IPFSDaemon would look like:
val zipped = responseBody.source()
val source = GzipSource(zipped)
val buffer = Okio.buffer(Okio.sink(getBinaryFile()))
var total = 0L
var cnt = 0L
do {
cnt = source.read(buffer.buffer(), 1024)
total += cnt
val size = cnt / 1024
progressDialog.setMessage("$size kB")
} while (cnt > 0)
Compile the bins with target android-21: xgo -go 1.8.3 --targets=android-21/* ./cmd/ipfs, so you get the additional arm64 bin, which is way faster when applicable (most newer devices):
The text was updated successfully, but these errors were encountered:
Two recommendations to make things faster.
downloadFile
function in the IPFSDaemon would look like:https://github.com/ligi/IPFSDroid/blob/master/app/src/main/java/org/ligi/ipfsdroid/IPFSDaemon.kt#L74-L88
xgo -go 1.8.3 --targets=android-21/* ./cmd/ipfs
, so you get the additionalarm64
bin, which is way faster when applicable (most newer devices):The text was updated successfully, but these errors were encountered: