Skip to content
Tcl Source Code Artifact [5898841795]
Login

Artifact [5898841795]

Artifact 5898841795b242ccab1bd49087cf7c912335efff:

Ticket change [5898841795] - Ticket [1693802fffffffff|1693802fff] <i>INST_INVOKE speedup</i> status still Closed with 4 other changes by msofer on 2007-04-04 20:21:29.
D 2007-04-04T20:21:29
J icomment Logged\sIn:\sYES\s\nuser_id=148712\nOriginator:\sYES\n\nThose\scomments\swill\sbe\sadded,\sthank\syou.\n\nI\sdid\snot\srun\sthe\sfull\sbenchmark\ssuite,\sbut\sdid\ssee\s10-20%\sspeed\simprovements\sin\sthe\sOO\smicrobenchmarks\sfor\sdifferent\sOO\ssystems.\n\nAs\sto\sthe\smistery\sabout\s"calling\sout\sof\sTEBC\sis\sexpensive",\smy\scomments\sare:\n\n(1)\sthat\sis\ssurely\sa\sbad\sexplanation:\sthe\snew\scode\sdoes\sone\sfunction\scall\sout\sof\sTEBC\s(possibly\smore),\sjust\slike\sthe\sold\sone\n\n(2)\shere\swe\sare\sinlining\sa\svery\sspecialised\sversion\sof\sTEOvI:\sflags==0,\sno\straces,\sthe\sCommand\sis\salready\sknown\sto\sexist\sand\sknown.\sIOW,\swe\sare\sreplacing\sa\s100+\sloc\sfunction\s(assuming\s~50%\scomments)\swith\s10\sloc\sin\sTEBC.\sIn\sChuck\sMoore's\smanner\sof\sspeaking:\swe\sare\sdeciding\smany\sthings\sat\sedit\stime\s(like\sflags=0)\sinstead\sof\schecking\sat\srun\stime.\n\n(3)\sVery\saggressive\srefactoring\scould\sbe\sa\sdifferent\sway\sof\sattaining\ssimilar\sresults,\sbut\sI\sam\snot\ssure\sthat\sTEOvI_reallyInternalCircle0Ex()\swould\sbe\san\saddition\sthat\swould\smake\smaintenance\smuch\seasier\s;)\n\nMy\sguess\sis\sthat\s(2)\shas\spositive\seffects\son\scache\sbehaviour,\spossibly\sdepending\son\show\sclever\sthe\scompiler/cpu\scombination\sis\sabout\sprefetching.\sThe\seffect\smight\salso\sbe\sobtained\swith\sgood\scompiler\shints,\sbut\sthose\stend\sto\sbe\snon-portable\s(eg,\sgcc's\s__builtin_expect\sfor\sbranches)\sand\salso\sharder\sto\smaintain.\n
J login msofer
J mimetype text/plain
J username msofer
K 1693802fffffffffffffffffffffffffffffffff
U msofer
Z 9bad655237223fc63e7c8a9559f0883d