.
D 2000-10-26T01:01:09
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s702\sBug\nVersion:\s8.0.3\nSubmitDate:\s'1998-10-09'\nLastModified:\s'2000-02-05'\nSeverity:\sSER\nStatus:\sReleased\nSubmitter:\sadmin\nChangedBy:\shobbs\nOS:\sAll\nOSVersion:\sNA\nMachine:\sNA\nFixedDate:\s'2000-02-05'\nFixedInVersion:\s8.2\nClosedDate:\s'2000-10-25'\n\n\nI\shave\sdone\ssome\sfurther\stesting\srelated\sto\sthis\sperformance\sproblem.\n\nI\shave\sattempted\sto\sremove\scode\sand\snarrow\sdown\sthe\sproblem\s-\sso\sfar\sI\shave\ndisconvered\sthat\sone\sprocedure\sin\sparticular\sis\staking\sages\s(like\s10-20\ntimes\sthan\sbefore):\nSee\sbelow...\sproc\sget_raw_token\n\nI\shave\salso\sdownloaded\sthe\ssource\srelease\sand\scompiled\sthis\son\smy\sLinux\sbox,\nrunning\sthe\ssame\sapplication\sit\sis\salso\sextremely\sslow\scompared\sto\sthe\s8.0p2\nrelease!\n\n#\sinclude\sspecial\shandling\sfor\stokens\sand\sseparators\n#\sif\sprocessing\sALPHA\sthen\sget\sseparator\s->\send\sof\stoken\n#\sif\sprocessing\sNUMBER\sthen\sget\sseparator\s->\send\sof\stoken\n#\sif\sprocessing\sSEPARATOR\sthen\stest\sfor\snext\schar??\sonly\s<=\s>=\s<>\s!=\s??\n#\snote:\sthis\sprocessing\sis\shandled\ssemi-automatically\sby\s"string\nwordstart/end"\n\nproc\sget_raw_token\s{}\s{\n\s\s\s\sglobal\sfile_source\sfile_source_pos\sfile_source_line\n\n\s\s\s\swhile\s1\s{\n\sset\sstart\s[string\swordstart\s$file_source\s$file_source_pos]\n\sset\send\s[expr\s{[string\swordend\s$file_source\s$file_source_pos]\s-\s1}]\n\n\s#\snull?\sassume\send\sof\sfile\n\sif\s{$end\s<\s$file_source_pos}\s{\sreturn\s"//eof"\s}\n\n\sset\sfile_source_pos\s[expr\s{$end\s+\s1}]\n\sset\stoken\s[string\srange\s$file_source\s$start\s$end]\n\n\s#\scomments?\ssearch\suntil\send\sof\sthe\sline\n\sif\s{$token\s==\s"/"}\s{\n\s\s\s\s\sif\s{[string\srange\s$file_source\s$file_source_pos\s$file_source_pos]\s==\n"/"}\s{\n\s\swhile\s{[string\srange\s$file_source\s$file_source_pos\s$file_source_pos]\s>=\s"\n"}\s{\n\s\s\s\s\s\sincr\sfile_source_pos\n\s\s}\n\s\s\s\s\s}\n\s}\selseif\s{$token\s==\s"'"}\s{\n\s\s\s\s\swhile\s{[string\srange\s$file_source\s$file_source_pos\s$file_source_pos]\s!=\n"'"}\s{\n\s\sincr\sfile_source_pos\n\s\s\s\s\s}\n\s\s\s\s\s#\sskip\sfinal\squote\scharacter\n\s\s\s\s\sset\send\s$file_source_pos\n\s\s\s\s\sincr\sfile_source_pos\n\s\s\s\s\s#\sreturn\sstring,\sincluding\squote\scharacters\n\s\s\s\s\sreturn\s[string\srange\s$file_source\s$start\s$end]\n\s}\selseif\s{$token\s==\s"\\""}\s{\n\s\s\s\s\swhile\s{[string\srange\s$file_source\s$file_source_pos\s$file_source_pos]\s!=\n"\\""}\s{\n\s\sincr\sfile_source_pos\n\s\s\s\s\s}\n\s\s\s\s\s#\sskip\sfinal\squote\scharacter\n\s\s\s\s\sset\send\s$file_source_pos\n\s\s\s\s\sincr\sfile_source_pos\n\s\s\s\s\s#\sreturn\sstring,\sincluding\squote\scharacters\n\s\s\s\s\sreturn\s[string\srange\s$file_source\s$start\s$end]\n\s}\selseif\s{$token\s==\s"\\n"}\s{\sincr\sfile_source_line\n\s}\selseif\s{$token\s>\s"\s"}\s{\sreturn\s$token\s}\n\s\s\s\s}\n}\n\nPeter\sCampbell\swrote:\n\n>\sI\shave\supgraded\sfrom\sTcl8.0p2\son\sWin95\sto\s8.0.3\s-\sdownloaded\sthe\sbinary\n>\sdistribution\sfor\sboth.\n>\n>\sMy\sapplication\swhich\sis\sa\scompiler/translator\snow\sruns\s10-20\stimes\n>\sslower\sthan\sbefore.\n>\n>\sI\shad\salso\srun\smy\sapplication\son\sLinux\susing\sTcl7.6\sand\son\sLinux\susing\n>\sitcl3.0a1\swith\sTcl8.0.\sThe\sperformance\swas\sgood,\sI\shave\snot\syet\stried\smy\n>\sapplication\son\sLinux\susing\sthe\snew\sTcl8.0.3.\n>\n>\sHas\sanybody\selse\sexperienced\sany\sperformance\sproblems?\n>\sI\shave\sreported\sthis\sproblem\sto\sScriptics\sas\sit\salso\seffected\stheir\n>\s"prowish"\sprogram.\n>\n>\sDoes\sanyone\sinvolved\swith\sthe\ssource\scode\sof\sTcl\sknow\swhat\shas\schanged\n>\sto\seffect\sperformance\sto\sthis\sextreme\sfrom\s8.0p2\sto\s8.0.3?\n>\n>\sI\sthought\sit\smay\sbe\sto\sdo\swith\ssource\sfiles\sbeing\sre-"compiled"\n>\sconstantly\sor\ssomething??\n>\sI\sdo\snot\suse\sany\sextensions\sas\syet,\sthe\sprogram\suses\sfile\saccess\s-\n>\smainly\sreading\ssmall\s(5-10k)\sfiles\sinto\sa\sstring\sthen\sprocessing\sthem\n>\susing\sthe\sstring\scommands.\n>\n>\sHELP...\n\n\nThe\sproblem\swas\sdue\sto\san\soptimization\sthat\swas\sremoved\sbecause\sit\nwasn't\s100%\scorrect,\swhich\swas\slater\sreinstated\swith\sfull\scorrectness\n(at\sleast\sin\s8.2,\smay\sbe\searlier).\s\sAll\sthe\suser\shas\sto\sdo\sis:\n\n\s\s\s\swhile\s{1}\n\ninstead\sof\n\n\s\s\s\swhile\s1\n\nto\sget\sthe\sspeed\sback.\s\sThis\sis\spedantically\scorrect,\sbut\sas\sI\ssaid,\nthe\soptimization\swas\salso\sreinstated\slater.\s\sThe\salgorithm\sitself\ncould\sbe\ssignificantly\simproved.\s\n--\s02/05/2000\shobbs
J foundin obsolete:\s8.0.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 10.\sObjects
J title tcl8.0p2\sis\s10x\sfaster\sthan\stcl8.0.3:\s\sperformance\sbug\swhen\s
J type Bug
K 218487ffffffffffffffffffffffffffffffffff
U nobody
Z 7a7bdae1e9302268ca27a9c3901b417e