Skip to content
Tcl Source Code Artifact [8eca594792]
Login

Artifact [8eca594792]

Artifact 8eca594792d6ca161eea668896c8e963de2013e8:

Ticket change [8eca594792] - Ticket [871583ffffffffff|871583ffff] <i>filesystem optimization</i> status still Open with 4 other changes by dgp on 2004-01-16 01:44:12.
D 2004-01-16T01:44:12
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\n\nIn\sthe\sduplicated\sstanza\nof\scode\snoted\sbefore,\sthere\nis\sa\scall\sto\sTcl_FSSplitPath()\non\sthe\spathObj\sreturned\sby\s[glob].\n\nThat\spathObj\swas\screated\sby\nTclNewFSPathObj()\sand\shas\nthe\sspecial\sstructure\syou\snoted\nbefore.\n\nTcl_FSSplitPath\scalls\sTclFSGetPathType()\nwhich\scalls\sTcl_FSConvertToPathType().\nwhich\swas\smodified\sby\sthis\spatch.\n\nPrior\sto\sthe\spatch,\sT_FSCTPT\ssees\sa\ntypePtr\sof\s&tclFsPathType\sand\squickly\nreturns\sTCL_OK.\n\nAfter\sthe\spatch,\sthere's\sa\scheck\sof\nfsPathPtr->cwdPtr\sand\ssince\sit\nholds\sthe\svalue\sof\sthe\sdirectory\nglobbed\sand\snot\sthe\scurrent\sworking\sdirectory\nof\sthe\sprocess,\sthe\spathObj\sis\sreconstructed\nby\sgenerating\sit's\sstring\srep,\sthen\sre-parsing.\nAppears\sthat's\swhere\sthe\stime\sdifference\ncomes\sfrom.\n\nSeems\sthat\sif\seither\sTcl_FSSplitPath()\nor\sTclFSGetPathType()\swere\supdated\nto\srecognize\sthe\soptimized\sform\sand\nprocess\sit\smore\sefficiently\swithout\sa\nstring\srep\sre-parsing,\sthis\sslowdown\nmight\sbe\savoided.\n\nIt\smight\sbe,\sthough,\sthat\sthe\sre-parsing\njust\shas\sto\shappen\sat\ssome\spoint,\sso\nyou\sjust\shave\sto\spick\swhere.\n
J login dgp
J mimetype text/plain
J username dgp
K 871583ffffffffffffffffffffffffffffffffff
U dgp
Z fc63fe18cf867a764187fc760d54e1df