.
D 2005-04-02T04:02:11
J icomment \n\nFile\sAdded\s-\s128130:\sTDRCpatch\n\nLogged\sIn:\sYES\s\nuser_id=148712\n\nNew\spatch\s-\smoving\sthe\sdeletion\scontext\smachinery\sto\stclObj.c\n\nThe\sreally\sheavy\susers\sof\sTDRC\s(TEBC)\smost\sfrequently\sfree\nobjects\swith\sfreeIntRepProc==NULL:\seither\sfreshly\screated\sby\nstring\sconcatenation,\sor\sa\snumerical\sresult\sof\sa\ncomputation.\sThe\smacro\sis\sas\sfast\sand\ssmall\sas\spossible\sfor\nthat\scase.\sThe\sother\scases\spay\sthe\spenalty\sof\sa\sfunction\ncall\sto\sTclFreeObj.\n\nAn\salternative\sapproach\sis\skeeping\sTDRC\sunchanged,\sbut\nmaking\sthe\sdeletion\scontext\scheaper\sto\saccess\srepeatedly\n(either\sby\scaching\sit\sat\sTEBC\sentry,\sor\sin\sa\sslot\sin\sthe\ninterp\sstructure).\sEven\sthen,\sthe\soverhead\sis\nnon-negligible,\sespecially\sfor\sobjs\swithout\sa\sstring\srep\s-\nas\scan\sbe\smeasured\sin\san\sunthreaded\sbuild.\n\nAs\sdiscussed\sin\sthe\schat,\swe\scan\slater\sfactor\sthe\scontext\nlookup\sout\sof\sTclFreeObj,\sand\shave\sa\sversion\sthat\stakes\ninterp\sas\sargument\sto\sallow\sfor\sfaster\saccess.\sThis\sversion\ncan\sthen\sbe\sused\sfor\sTDRC,\swhile\sleaving\sT_DRC\sunchanged.\n
J login msofer
J mimetype text/plain
J username msofer
K 1174551fffffffffffffffffffffffffffffffff
U msofer
Z f2e6ac2c249eed7e4da9ac69652c0688