minizip-ngのI/O部分をカスタマイズするぐらいしか思いつかなかった…
https://github.com/zlib-ng/minizip-ng
https://ukadon.shillest.net/@steve02081504/108011714820148306
minizip-ngのI/O部分をカスタマイズするぐらいしか思いつかなかった…
https://github.com/zlib-ng/minizip-ng
https://ukadon.shillest.net/@steve02081504/108011714820148306
@ponapalt It looks like minizip-ng can read zip files directly from memory, so it looks like I can just read the zip file into memory and open and traverse itI'm hesitant to say that some nar may be very large, so perhaps there should be a limit on the size of the nar that can provide previews to avoid unnecessary file reads, but I'm not sure how big a nice size limit would be. how about 32mb?
@steve02081504 Since the size of the NAR tends to increase each year, it should be able to read about 2MB-4MB.file mapping object with file handle may help you if you want to read large file but not want to allocate large memory.
senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.