.
D 2008-07-23T21:33:17
J assignee andreas_kupries
J foundin obsolete:\s8.6a1
J icomment Logged\sIn:\sYES\s\nuser_id=148712\nOriginator:\sNO\n\nTwo\sthings\sthat\swe\scan\sdo\sto\sreduce\sthe\sspeed\simpact\sof\sTip\s#280.\sTicket\s\nnow\smarked\sas\sHEAD,\sbut\sthese\smay\sbe\sbackportable\stoo.\n\n----\n(1)\sCompute\sthings\slazily!\n\nLooking\sspecifically\sat\sthe\scanon-list\spath\sin\sTcl_EvalObjv,\swe\sare\snow\ngetting\sand\ssearching\sthe\sstring\srep\sof\severy\selement\sin\sthe\slist.\sThis\nwork\sis\sgenerally\swasted,\sit\sis\sonly\sneeded\swhen\sand\sif\sa\sstack\strace\sis\ngenerated.\sIt\smay\seven\sbe\svery\scostly,\sif\sone\sof\sthe\selements\sturns\sout\sto\nbe\sa\sbig\slist.\n\nSo,\sat\sleast\sfor\sTCL_LOCATION_EVAL_LIST,\swe\scould\sjust\sstore\sa\sref\sto\nobjPtr\s(without\sa\srefCount,\sit\sis\sguaranteed\sto\sbe\salive\suntil\sthe\scommand\nreturns,\sie\suntil\safter\sa\sstack\strace\sentry\swas\seither\sgenerated\sor\nnot).\sIf\sand\swhen\sa\sstack\strace\shas\sto\sbe\sgenerated,\sthe\ssearch\sof\sthe\nelements'\sstring\srep\scan\sbe\sperformed.\n\nNote\sthat\n(a)\sthis\smay\sjust\sshow\show\sI\sdid\snot\sget\sTIP\s#280;\sif\strue,\ssorry\n(b)\ssimilar\sstuff\scan\spossibly\sbe\sdone\sfor\sthe\sother\spaths,\sbut\sthe\spayoff\nmay\sbe\ssmaller:\sall\sother\seval\spaths\s(compile,\sinterp)\shave\sa\sstring\srep\navailable\sor\sgenerate\sone\sbefore\srunning\sanyway\n\n----\n(2)\sOnly\sattempt\sto\smanage/index/whatever\sTcl_Objs\sthat\scan\scome\sfrom\nsource,\savoid\sdealing\swith\sdynamically\sgenerated\sTcl_Objs\sif\npossible.\sCurrently\sa\sTcl_Obj\sthat\seither\n\s\s\sa)\shave\sno\sstring\srep\n\s\s\sb)\shave\sa\sList\sintrep\sand\sthe\scanonicalFlag\sis\sset\nare\sguaranteed\sto\sbe\sdynamically\sgenerated;\sTIP\s280\scode\sshould\sbe\sas\ngentle\sas\spossible\swith\sthem\n\n
J login msofer
J mimetype text/plain
J priority 8
J username msofer
K 1692378fffffffffffffffffffffffffffffffff
U msofer
Z fcd251b9d2ab501f3a02f5d05f9794e9