tarsin
f9df373a16
Some infeasible optimization
2023-02-24 12:39:58 +08:00
tarsin
f959f98012
Minor cleanup
2023-02-24 12:02:42 +08:00
tarsin
e12a93f36b
Introduce new archive decompress mempool, Resolve #307
2023-02-24 11:37:30 +08:00
FooIbar
a8195c0e7c
Map archive index with filename order
...
Try to resolve #427
2022-12-17 12:53:13 +08:00
tarsin
5e13986cc0
Prefault archive mapping page tables for small files
2022-12-02 17:33:54 +08:00
tarsin
7ac20d59fc
Use DirectByteBuffer
...
Seems my mimalloc(I use it as Android's system allocator) doesn't like release memory to system since I replace MADV_DONTNEED with MADV_FREE
https://github.com/AcmeUI/android_external_mimalloc
but there is no memleak I sure
2022-11-21 12:11:35 +08:00
tarsin
54d11dea95
Initial migrate to ImageDecoder Java api, and downgrade minsdk to 28
2022-11-19 22:17:08 +08:00
tarsin
ae79417845
Adjust madvise usage
2022-11-10 15:21:17 +08:00
tarsin
50f0df5012
Explicitly set format and filter we use
...
This helps to reduce native library size
2022-11-10 00:56:49 +08:00
tarsin
bc08a09621
Fix read archive
2022-09-23 09:20:15 +08:00
txyyh
9251ed238c
Fix archive code error ( #289 )
2022-09-21 08:56:56 +08:00
tarsin
3b96328765
Use fixed size buffer
2022-09-20 18:29:35 +08:00
tarsin
108928e524
Implement save, share image from archive
2022-09-20 18:09:41 +08:00
tarsin
144e384441
Refine error handling
2022-08-21 12:00:29 +08:00
tarsin
9bb694171b
Implement multithreading archive read
2022-08-21 09:21:53 +08:00
tarsin
647362cd82
Implement multiple archive context, Fix #213
...
* This is useful for multithreading decompress with lock usage
2022-08-20 23:38:13 +08:00
tarsin
56996558df
Fix a use-after-free
2022-08-20 20:23:57 +08:00
tarsin
a0fe6f0d7d
Revert "archive: Use memfd instead"
...
* It sucks, seems simplify the conditions, but more syscalls are
made(read/seek/write), more context switch, futhermore AImageDecoder itself does support
read raw buffer, and we are not intend to support multi-process decoding
This reverts commit f4826ea727 .
2022-08-07 19:14:25 +08:00
tarsin
f4826ea727
archive: Use memfd instead
2022-08-07 17:13:48 +08:00
tarsin
a17b254494
Call mmap/munmap in native code
2022-08-07 15:23:32 +08:00
tarsin
c8dab6a88f
Archive: ignore crc32
2022-08-07 11:43:27 +08:00
tarsin
6f3bd92539
Merge native
2022-08-03 17:48:46 +08:00