Artifacts Associated With Ticket 682500ffffffffff
Ticket change [25cbf6741c] (rid 88227) by vincentdarley on 2003-02-07 19:02:00:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Here's a first cut at a patch which should speed up the filesystem in Tcl 8.4.1. At least on Windows, with this patch Tcl 8.4 is faster in things like: foreach f [glob -dir $dir *] { file stat $f arr ... } than 8.3, often by a quite a large margin. I have also attached a file testfs.tcl which I am using for benchmarking. It is untested on Unix. - foundin initialized to: "None"
- priority initialized to: "7 High"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "vincentdarley"
- subsystem initialized to: "37. File System"
- title initialized to: "speed up filesystem patch"
- type initialized to: "Patch"
Add attachment "fsspeed.diff" [4244a26619] (rid 116341) by vincentdarley on 2003-02-08 02:05:29.
Ticket change [6a72d7bd4d] (rid 128149) by vincentdarley on 2003-02-08 02:05:29:
- icomment:
File Added - 41785: fsspeed.diff
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [be82a9b3ef] (rid 102083) by vincentdarley on 2003-02-08 02:06:16:
- icomment:
Logged In: YES user_id=32170 Added test script
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Add attachment "testfs.tcl" [5a27ea2a13] (rid 118091) by vincentdarley on 2003-02-08 02:06:16.
Ticket change [b015fc653f] (rid 97921) by vincentdarley on 2003-02-08 02:06:17:
- icomment:
File Added - 41786: testfs.tcl
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [ddd0e623f6] (rid 114743) by jcw on 2003-02-08 05:01:25:
- icomment:
Logged In: YES user_id=1983 confirmed to work (quick test) on Win32 and Linux - binary tclkits based on these now in http://www.equi4.com/pub/tk/newer/
- login: "jcw"
- mimetype: "text/plain"
- username: "jcw"
- icomment:
Ticket change [7320b6934d] (rid 104990) by hobbs on 2003-02-09 10:00:29:
- icomment:
Logged In: YES user_id=72656 Note that this part of the patch looks highly suspicious to me, although the return does seem key to Win not going boom: @@ -3766,10 +3761,14 @@ if (objPtr->typePtr == &tclFsPathType) { FsPath *fsPathPtr = (FsPath*) objPtr- >internalRep.otherValuePtr; if (fsPathPtr->filesystemEpoch != theFilesystemEpoch) { + if (objPtr->bytes == NULL) { + + } FreeFsPathInternalRep(objPtr); objPtr->typePtr = NULL; return Tcl_ConvertToType(interp, objPtr, &tclFsPathType); } +return TCL_OK; if (fsPathPtr->cwdPtr == NULL) { return TCL_OK; } else { That's in tclIOUtil.c. Also, this patch blows the unix test suite (no crashes, just lots of errors), so something about it isn't correct. I've isolated it to the tclUnixFile.c change. That looks OK, but I had to revert to the old version for correctness. Note that one simple change erases all speedups on Linux. - login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [ae22eced54] (rid 101588) by hobbs on 2003-02-09 11:49:27:
- icomment:
Logged In: YES user_id=72656 This patch appears incorrect. I've attached something that may be more correct, but there may be more fundamental flaws in the changes.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Add attachment "fs-682500.diff" [bf8d756edc] (rid 102268) by hobbs on 2003-02-09 11:49:28.
Ticket change [7054e24ec1] (rid 100457) by hobbs on 2003-02-09 11:49:30:
- icomment:
File Added - 41889: fs-682500.diff
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Add attachment "fsspeed2.patch" [7409e22f15] (rid 105132) by vincentdarley on 2003-02-10 06:36:24.
Ticket change [23dc624cf6] (rid 131005) by vincentdarley on 2003-02-10 06:36:24:
- icomment:
File Added - 41948: fsspeed2.patch
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [5921f162d9] (rid 117925) by vincentdarley on 2003-02-10 06:37:46:
- icomment:
Logged In: YES user_id=32170 Attached newer patch. Should work on Linux, Windows at least.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [cb87241d67] (rid 95537) by hobbs on 2003-02-10 10:48:58:
- icomment:
File Added - 41965: fs2-682500.diff Logged In: YES user_id=72656 Attached updated patch.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Add attachment "fs2-682500.diff" [d837e3b7bd] (rid 107400) by hobbs on 2003-02-10 10:48:58.
Ticket change [639ff46d29] (rid 92615) by vincentdarley on 2003-02-10 19:58:52:
- closedate changed to: "2003-02-10T12:58:52"
- closer changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=32170 This patch has been applied. Further improvements are definitely still possible, but require a bit more analysis first.
- login: "vincentdarley"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "vincentdarley"
Ticket change [f559d3d696] (rid 130090) by hobbs on 2003-02-11 04:31:07:
- icomment:
Logged In: YES user_id=72656 The current patch is incorrect. This needs further testing.
- login: "hobbs"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "hobbs"
- icomment:
Add attachment "fs3-682500.diff" [077ee99226] (rid 89411) by hobbs on 2003-02-11 09:08:58.
Ticket change [f36bce636a] (rid 129712) by hobbs on 2003-02-11 09:08:58:
- icomment:
File Added - 42051: fs3-682500.diff Logged In: YES user_id=72656 Attached is the patch with extra failing test.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [75c83d8741] (rid 105446) by hobbs on 2003-02-11 09:24:11:
- icomment:
File Added - 42054: fs3.1-682500.diff Logged In: YES user_id=72656 And attached is a patch to fs3-682500.diff that corrects the failing test. However, the entire handling of cwdLen, adding and subtracting 1 seems incorrect. For example, Tcl_FSGetNormalizedPath then passes cwdLen-1, which may also not be correct. The entire handling of the case for cwdLen == 0 may be incorrect in other places. It is likely most prudent to revert this all until a more thorough review with additional tests is made.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- username: "hobbs"
- icomment:
Ticket change [a62c2c0fed] (rid 98551) by hobbs on 2003-02-11 09:25:28:
- icomment:
File Deleted - 42054: File Added - 42055: fs3.1-682500.diff Logged In: YES user_id=72656 Attaching same patch with correct -u formatting this time.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Add attachment "fs3.1-682500.diff" [0ad9ed429a] (rid 113892) by hobbs on 2003-02-11 09:25:28.
Ticket change [690e0a52c8] (rid 103177) by hobbs on 2003-02-11 09:27:09:
- icomment:
File Added - 42057: fs4-682500.diff Logged In: YES user_id=72656 And one more time in full (fs4) to make it easy for others ...
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Add attachment "fs4-682500.diff" [23674d50b0] (rid 130926) by hobbs on 2003-02-11 09:27:09.
Ticket change [7b98c67f3e] (rid 96933) by vincentdarley on 2003-02-12 00:28:12:
- icomment:
Logged In: YES user_id=32170 NB. Jeff has now committed a fixed patch. We shall see if any new bugs turn up over the coming week or two.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [da8f74e33c] (rid 107808) by hobbs on 2003-02-12 01:56:25:
- closedate changed to: "2003-02-11T18:56:25"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 Let's call this closed and have any bugs introduced be reported separately.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "hobbs"