.
D 2007-07-08T22:00:45
J assignee msofer
J cmimetype text/plain
J comment The\sBig\sVar\sReform\sof\s2007\s(partial\simplementation)\n_________________\nPresent\sSituation\n\nUp\sto\s8.5a6\sa\svariable\srequires\s(all\snumbers\son\s32\sbit\splatforms,\sassuming\suse\sof\sthe\sthreaded\sallocator\s''zippy''):\n\n*\sCompiled\slocal\svariables\n\s\s-\s32\sbytes\son\sthe\sTcl\sstack\n\n*\sHashtable\svariables\s(namespace\svars,\sarray\selements,\sruntime\sdefined\slocals):\s\n\s\s-\s32\sbytes\sfor\sthe\sVar\sstruct:\szippy\sallocates\s64\sbytes\n\s\s-\sTcl_HashEntry\s\n\s\s\s\s.\svarnames\sof\sup\sto\s7\schars:\s20/24\sbytes,\szippy\sallocates\s32\sbytes\n\s\s\s\s.\svarnames\sof\sup\sto\s79\schars:\szippy\sallocates\s64\sbytes\n\nMost\svariable\saccesses\sread\sfirst\sthe\sflags\s(field\s#8),\sthen\sthe\svalue\s(field\s#1).\n__________\nThis\spatch\n\n*\sCompiled\slocal\svariables\n\s\s-\s8\sbytes\son\sthe\sTcl\sstack;\sthis\shas\salso\san\simpact\son\sproc\sinitialisation\sand\scache\sfriendliness\sof\slocal\svariable\saccess\s(2\swords/var\sinstead\sof\s8)\s\n\n*\sHashtable\svariables\s(namespace\svars,\sarray\selements,\sruntime\sdefined\slocals):\ssingle\salloc\sfor\sVar\s(12\sbytes)\sand\sTcl_HashEntry\s(20+\sbytes)\n\s\s-\s64\sbytes\sallocated\sby\szippy\sfor\svarnames\sof\sup\sto\s119\schars\n\nMost\svariable\saccesses\sread\sfirst\sthe\sflags\s(field\s#1),\sthen\sthe\svalue\s(field\s#2).\n\nThe\spatch\spasses\sthe\stestsuite,\svalgrind\ssoon.\n___________\nForthcoming\n\nBy\smoving\sto\sTcl_Obj\skeys\swe\scan\sreduce\sthe\shashTable\svariables\sto\s24\sbytes\sindependent\sof\sname\slength\s(zippy\s->\s32),\splus\sa\spossibly\sshared\sTcl_Obj\sstoring\sthe\sname.\sIf\sit\sis\sstored\sin\sthe\sliteral\stable\swe\scan\salso\ninsure\sfaster\skey\scomparison,\salso\sin\smany\s"fail"\scases.\sA\sfurther\sadvantage\sis\sthat\sno\sstring\sis\scopied\son\svariable\screation.\n_________________________________________\nImpact\son\sextensions\sthat\sinclude\stclInt.h\s\n\nExtensions\sthat\sallocate\sor\saccess\sVar\sstructs\sdirectly\smay\slose\sbinary\scompatibility.\sIt\sshould\sbe\srelatively\ssimple\sto\srestore\ssource\scompatibility.\sSpecial\sattention\sshould\sbe\spaid\sif\sthey\sallocate\sor\sinit\nvariable\stables,\sas\sthese\sare\s*not*\splain\sstring-keyed\sTcl\sanymore.\n\nExtensions\sthat\salloc\sor\saccess\sCallFrame\sor\sByteCode\sstructs\smay\slose\sbinary\scompat,\sas\sthe\sstructs\sare\sgrown\sby\sone\sfield\sthat\smust\sbe\sinitialised\sto\sNULL.\n\nExtensions\sthat\salloc\sor\saccess\sInterp\sstructs\smay\slose\sbinary\scompat,\sas\sthe\sstructs\sare\sgrown\sby\sone\sfield\sthat\smust\sbe\sinitialised\sproperly.\n
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter msofer
J subsystem 07.\sVariables
J title The\sBig\sVar\sReform\sof\s2007
J type Patch
K 1750051fffffffffffffffffffffffffffffffff
U msofer
Z 243a45dace8daa709f23c76d5b87acce