Skip to content
Tcl Source Code History Of Ticket 7aee6028491a9c7e
Login

History Of Ticket 7aee6028491a9c7e

Artifacts Associated With Ticket 7aee6028491a9c7e

  1. Ticket change [0fb957ef61] (rid 193800) by chw on 2021-04-18 13:54:09:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      dkf, from the latest commits regarding zipfs I see you're planning a
      new TIP. Comparing the current state of affairs with my AndroWish
      zipfs version what about considering these enhancements:
      
      * improving glob performance by having real directories
      (ZipDirEntry structs as a subclass of ZipEntry structs)
      with a hash for children
      
      * weak symbol trickery to support linking ZIPs as an object file,
      i.e. use "objcopy -I binary" to make an object with a read-only
      byte array which can be mounted
      
      * support for loading native code from /dev/shm or memfd which are
      available on various BSDen and Linuxen and allow to eliminate copies
      of shared libraries to temporary files
      
    5. foundin initialized to: ">= 8.7"
    6. is_private initialized to: "0"
    7. login: "chw"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0b3aff16612e1e9f3b675963fa64e01bd1d89307"
    10. resolution initialized to: "None"
    11. severity initialized to: "Cosmetic"
    12. status initialized to: "Open"
    13. submitter initialized to: "chw"
    14. subsystem initialized to: "37. File System"
    15. title initialized to: "zipfs RFE"
    16. type initialized to: "RFE"
  2. Ticket change [60ee43471c] (rid 193934) by jan.nijtmans on 2021-04-26 07:18:33:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      Chrisian, I would be happy to sponsor this and help you with the TIP/implementation. Any patches you can offer already? About "weak symbol trickery", it's not clear to me how it could be useful (at least not on Windows/Linux, neither on MacOS since we have Marc Culler's "macher" utility already ...). But for the other two, I certainly see the added value.
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
    5. severity changed to: "Minor"
  3. Ticket change [17bfd5b774] (rid 193960) by chw on 2021-04-26 09:01:18:

    1. icomment:
      * to give an overview on /dev/shm or memfd loading see these sections from
        AndroWish's zipfs implementation:
      
      https://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=636-957
      https://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=5651-5822
      
        This is based on 8.6 and needs certainly some work to be part of the
        current core-8-branch and trunk.
      
      
      * the weak symbol idea is in
      
      https://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=418-439
      https://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=1630-1684
      
        and when used consequently would allow to generate a ZIP at build time, transform
        it to an object file as an "unsigned char" byte array with known name, and finally
        link that object to an executable or a shared library. If the function to mount
        a byte array as a ZIP is available per Tcl's stub table, the same technique can
        be used in arbitrary Tcl extensions with native code. This works equally well on
        the three main platforms and would simplify distribution of Tcl extensions which
        finally can be made up of a shared library with embedded ZIP plus a pkgIndex.tcl,
        nothing more. 
      
      
      * glob performance of the ZIP filesystem isn't great when lots of ZIP archive members
        from one or more mounts fill up the single hash table (ZipFS.fileHash) since the
        glob involves linear scanning through the entire table. For common glob usage
        patterns added hash tables in ZIP directory entries for the children of the
        respective directory can give a significant speed up at the expense of more
        memory (a common design problem of all real world filesystems). The respective
        pieces can be found in
      
      https://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=221-251
      https://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=309-339
      https://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=1894-2242
      https://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=5023-5263
      
    2. login: "chw"
    3. mimetype: "text/plain"