.
D 2016-07-02T19:03:11.097
J closedate 2457572.29387844
J comment Hi,\r\n\r\nCurrently,\swhen\sI\ssource\sa\sfile,\sTCL\screates\sa\sbuffer\s\r\nwhose\ssize\sis\sequivalent\sto\sthe\ssize\sof\sthe\sfile.\s\sThen\s\r\nevaluate\sthe\sbuffer\saltogether.\r\n\r\nI'm\sasking\sfor\sa\sutility\swhereby\sI\scan\sspecify\sthe\ssize\sof\s\r\nbuffer\sI\swant\sTcl_SourceObjCmd\sto\swork\swith.\s\sAnd\sas\s\r\nmuch\sas\spossible,\sTCL\sdoes\snot\sgrow\sthis\sbuffer\ssize,\s\r\nunless\sif\sneeded.\s\s\r\n\r\nA\spossible\sexample\swhere\sgrowing\sthe\sbuffer\ssize\sis\s\r\nneeded\sis\sif\syou\sencounter\sa\sflow-control\scommands\s\r\nsuch\sas\swhile,\sfor,\setc,\sor\sany\sother\scommands\sthat\s\r\nrequire\sa\sopen-curly-brace\sand\sclose-curly-brace.\r\n\r\nThis\skind\sof\sfeature\swill\sbe\svery\suseful\swhen\smost\sof\sthe\s\r\ntime\syou\ssource\sa\sscript\sthat\sis\sreally-really-really\shuge.\r\n\r\nA\sgood\stestcase\smaybe\sa\s100,000-line\sscript\swhere\s\r\neach\sline\sis\sdoing\sthe\ssame\sthing.\r\n\r\n\s\s\sfor\s{\sset\si\s0\s}\s{\s$i\s<\s10\s}\s{\sincr\si\s}\s{\s}\r\n\s\s\sfor\s{\sset\si\s0\s}\s{\s$i\s<\s10\s}\s{\sincr\si\s}\s{\s}\r\n\s\s\sfor\s{\sset\si\s0\s}\s{\s$i\s<\s10\s}\s{\sincr\si\s}\s{\s}\r\n\s\s\s...\r\n\r\n--\sYohan
J login dgp
J mimetype text/plain
J severity Minor
J status Closed
K 776614ffffffffffffffffffffffffffffffffff
U dgp
Z 9ee1b9fbe8f0b862507cf4b1faa54b4f