Skip to content
Tcl Source Code Artifact [17bfd5b774]
Login

Artifact [17bfd5b774]

Artifact 17bfd5b77419d0f81cf4f417cc57bf6f30739316aa1dfc7e12006520175588ad:

Ticket change [17bfd5b774] - Ticket [7aee6028491a9c7e|7aee602849] <i>zipfs RFE</i> status still Open with 3 other changes by chw on 2021-04-26 09:01:18.
D 2021-04-26T09:01:18.297
J icomment *\sto\sgive\san\soverview\son\s/dev/shm\sor\smemfd\sloading\ssee\sthese\ssections\sfrom\r\n\s\sAndroWish's\szipfs\simplementation:\r\n\r\nhttps://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=636-957\r\nhttps://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=5651-5822\r\n\r\n\s\sThis\sis\sbased\son\s8.6\sand\sneeds\scertainly\ssome\swork\sto\sbe\spart\sof\sthe\r\n\s\scurrent\score-8-branch\sand\strunk.\r\n\r\n\r\n*\sthe\sweak\ssymbol\sidea\sis\sin\r\n\r\nhttps://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=418-439\r\nhttps://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=1630-1684\r\n\r\n\s\sand\swhen\sused\sconsequently\swould\sallow\sto\sgenerate\sa\sZIP\sat\sbuild\stime,\stransform\r\n\s\sit\sto\san\sobject\sfile\sas\san\s"unsigned\schar"\sbyte\sarray\swith\sknown\sname,\sand\sfinally\r\n\s\slink\sthat\sobject\sto\san\sexecutable\sor\sa\sshared\slibrary.\sIf\sthe\sfunction\sto\smount\r\n\s\sa\sbyte\sarray\sas\sa\sZIP\sis\savailable\sper\sTcl's\sstub\stable,\sthe\ssame\stechnique\scan\r\n\s\sbe\sused\sin\sarbitrary\sTcl\sextensions\swith\snative\scode.\sThis\sworks\sequally\swell\son\r\n\s\sthe\sthree\smain\splatforms\sand\swould\ssimplify\sdistribution\sof\sTcl\sextensions\swhich\r\n\s\sfinally\scan\sbe\smade\sup\sof\sa\sshared\slibrary\swith\sembedded\sZIP\splus\sa\spkgIndex.tcl,\r\n\s\snothing\smore.\s\r\n\r\n\r\n*\sglob\sperformance\sof\sthe\sZIP\sfilesystem\sisn't\sgreat\swhen\slots\sof\sZIP\sarchive\smembers\r\n\s\sfrom\sone\sor\smore\smounts\sfill\sup\sthe\ssingle\shash\stable\s(ZipFS.fileHash)\ssince\sthe\r\n\s\sglob\sinvolves\slinear\sscanning\sthrough\sthe\sentire\stable.\sFor\scommon\sglob\susage\r\n\s\spatterns\sadded\shash\stables\sin\sZIP\sdirectory\sentries\sfor\sthe\schildren\sof\sthe\r\n\s\srespective\sdirectory\scan\sgive\sa\ssignificant\sspeed\sup\sat\sthe\sexpense\sof\smore\r\n\s\smemory\s(a\scommon\sdesign\sproblem\sof\sall\sreal\sworld\sfilesystems).\sThe\srespective\r\n\s\spieces\scan\sbe\sfound\sin\r\n\r\nhttps://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=221-251\r\nhttps://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=309-339\r\nhttps://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=1894-2242\r\nhttps://www.androwish.org/home/file?ci=tip&name=jni/tcl/generic/zipfs.c&ln=5023-5263
J login chw
J mimetype text/plain
K 7aee6028491a9c7e05e4de86cfbac1eb13310a2c
U chw
Z 1340294edeb93f4a978116fff967ab9c