senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. ぽな@ばぐとら 🛸 (ponapalt@ukadon.shillest.net)'s status on Friday, 25-Mar-2022 04:57:53 JST ぽな@ばぐとら 🛸 ぽな@ばぐとら 🛸

    minizip-ngのI/O部分をカスタマイズするぐらいしか思いつかなかった…

    https://github.com/zlib-ng/minizip-ng

    https://ukadon.shillest.net/@steve02081504/108011714820148306

    In conversation Friday, 25-Mar-2022 04:57:53 JST from ukadon.shillest.net permalink
    • steve02081504@ukadon.shillest.net's status on Friday, 25-Mar-2022 11:02:32 JST steve02081504 steve02081504
      in reply to

      @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?

      In conversation Friday, 25-Mar-2022 11:02:32 JST permalink
    • ぽな@ばぐとら 🛸 (ponapalt@ukadon.shillest.net)'s status on Friday, 25-Mar-2022 11:06:21 JST ぽな@ばぐとら 🛸 ぽな@ばぐとら 🛸
      in reply to
      • steve02081504

      @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.

      In conversation Friday, 25-Mar-2022 11:06:21 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

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.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.