Overview
| Artifact ID: | 1cb46b08144d767d2ae7381eec91295ca7c927000984be6c93a0b1497e808a17 |
|---|---|
| Ticket: | 93eb73784ae4c3b2285133a98df8163144eba291
zipfs interaction with tcl_findLibrary causes slow loading |
| User & Date: | juliannoble2 on 2023-09-07 12:21:58 |
Changes
- icomment:
Re Experiment: What if we changed "//zipfs:/" to "/zipfs:/" branch bug-93eb73784a Tested on windows - it solves the problem of slow tclsh startup when lib/tcl8.7 not present. I also tested after doing make install-libraries - and it defaults to using the disk files - with no zipfs mount. I think it should probably default to use the zipfs version when available and only use the files if pointed to by env(TCL_LIBRARY) or no zip archive exists but that's another issue I guess. Testing with loading tk as a library and by running wish - this also solves the loading speed problem. tcl_findLibrary is still calling mount twice - (which doesn't seem to hurt anything but shows zipfs exists is broken) zipfs mount /zipfs:/lib/tk C:/tcl/bin/tk87.dll While you're at the documentation - consider that zipfs mount takes it's arguments backwards compared to unix systems, androwishes' fork of zipfs and more importantly - Tcl's own vfs package It may be worth considering reversing the behaviour of the zipfs mount command if it's not too late. zipfs unmount takes the mountpoint which, although different to androidwish which unmounts by taking the archive as an argument; is I think better - as it allows mounting/unmounting of the same file mounted at different paths. Speaking of which... I really think consideration should be given to allowing zipfs to be able to mount files anywhere. I think I understand the need for a special volume for bootstrapping issues and when no FS available - so it's ok as a default - but I don't see why zipfs shouldn't be able to mount zipfiles anywhere as well once a filesystem is up and running. Otherwise - we can resort to using the vfs::zip tcl-based system - but it seems like an odd requirement if zipfs is builtin - and is especially weird when the aforementioned mount arguments are reversed. - login: "juliannoble2"
- mimetype: "text/plain"