aldenml / libtorrent4j

libtorrent for java, a swig Java interface for libtorrent
http://libtorrent4j.org
Other
218 stars 31 forks source link

[Android] Pieces checking slow with POSIX I/O backend #213

Open proninyaroslav opened 2 years ago

proninyaroslav commented 2 years ago

Version: 2.0.5-26-RC1

Pieces checking hangs at some point, if POSIX I/O backend is enabled. I opened the log and found that there is a check running before 100-200 pieces, after which the check hangs. This happens with large torrents:

This doesn't happen if the mmap I/O backend is enabled.

proninyaroslav commented 2 years ago
UPD: I checked it again and It looks like the the check progress doesn't hangs completely, but it's very slow compared to mmap. I took ~14GB torrent with 258 files for test and noted the time: POSIX mmap
2 min 33 sec 1 min 13 sec
aldenml commented 2 years ago

is this a 64bits device?

proninyaroslav commented 2 years ago

Yes, but I can try to check it on a 32-bit device.

aldenml commented 2 years ago

Hi @proninyaroslav, is this still a problem?

proninyaroslav commented 2 years ago

@aldenml Yes