.
D 2002-07-24T10:51:03
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\nHere\sis\san\supdated\spatch\sthat\scompletes\nCONST-ification\sof\sTcl.\s\sIt\shas\sa\ssubstantial\nparser\sre-write\sthat\soperates\son\scounted\nstrings,\sand\sdoesn't\shave\sthe\sthread-safety\nissues\sof\sthe\slast\sattempt.\s\sAlso\smerged\sin\nare\sthe\sfeatures\sof\sPatch\s582429\swhich\nCONST-ifies\sthe\sTcl_*Var*\sinterfaces,\sand\nthe\spatch\sattached\sto\sBug\s580433\sthat\nenhances\sthe\sUSE_NON_CONST\smacro\nto\sallows\susers\sof\sthe\sC\sAPI\sto\scompletely\navoid\sall\ssource\sincompatibilities\swith\s8.3\nheaders\sif\sthey\sneed\sto.\n\nIt's\sbeen\ssaid\sthat\sCONST-ification\sneeds\nto\sbe\san\s"all\sor\snothing"\saffair.\s\sThis\spatch\nlets\sus\sexplore\sthe\s"all"\soption.\n\nIt's\salso\sbeen\ssaid\sthat\sCONST-ification\nof\sthe\sparser\swould\skill\sperformance.\s\sI\sdon't\nsee\sa\ssignificant\sproblem\swith\sit.\s\sSimple\ntesting\swith\stclbench\sindicates\sthe\spatched\nTcl\sis\soverall\sfaster\sthan\seven\sthe\sHEAD,\s\nand\sa\sstill\sa\ssignificant\simprovement\sover\n8.4b1\s(thanks,\sMIguel!).\s\sThere\sare\ssome\nthings\sthat\sare\sslower,\snotably\sevaluation\nof\sunbraced\s[expr]'s,\sbut\shaven't\swe\sadvised\nagainst\sthose\sfor\sawhile\snow?\n\nAnyhow\sthe\smain\spoint\swas\sto\sget\nsomething\sworking\sso\sthat\swe\scan\sdecide\nwhether\sor\snot\sto\sadopt\sit\sbased\son\nmeasurements\srather\sthan\sspeculation,\nso\splease\smeasure\saway!\s\sTry\sit.\n
J login dgp
J mimetype text/plain
J username dgp
K 585105ffffffffffffffffffffffffffffffffff
U dgp
Z 96285634a5595df3958be62d7e336d72