Skip to content
Tcl Source Code Artifact [a71d468457]
Login

Artifact [a71d468457]

Artifact a71d468457de054335355f40b08d49373d13c400:

Ticket change [a71d468457] - Ticket [1820448fffffffff|1820448fff] <i>TEBC: replace giant switch by computed goto</i> status still Open with 5 other changes by das on 2007-11-10 02:18:33.
D 2007-11-10T02:18:33
J icomment \n\nFile\sAdded\s-\s253600:\stclExecute-TEBCinline-compgoto.diff\n\nLogged\sIn:\sYES\s\nuser_id=90580\nOriginator:\sYES\n\nupdated\spatch\sattached:\n-\snow\sincludes\sconfigure\schecks\sfor\scomputed\sgoto\sand\s__builtin_expect\savailability\n-\sadded\sconfigurable\sinlining\sof\scommon\scode\sinto\sthe\sNEXT_INST_{F,V}\smacros\saccording\sto\sTEBC_INLINE_LEVEL:\n0\sno\sinlining\n1\sinline\scleanup\scode\n2\salso\sinline\sasync\shandler\sand\sother\scheck\scode\n3\salso\sinline\speephole\sgotos\n4\salso\sdo\sindirect\sthreading\s(direct\scomputed\sgoto\sto\snext\sinstruction)\n(level\s4\sobviously\sonly\smakes\ssense\swhen\scomputed\sgotos\sare\savailable,\sbut\sthe\sothers\sare\seffective\sfor\sthe\sgiant\sswitch\sas\swell).\n-\sconfiguration\sof\sinline\slevel\s&\scomputed\sgoto\suse\sis\scurrently\smanual\svia\sthe\sdefines\sat\sthe\stop\sof\stclExecute.c\n\nI\ssee\simproved\sperformance\swith\sinceasing\sinline\slevel,\sfor\sboth\sgiant\sswitch\sand\scomputed\sgoto,\swith\sthe\sbiggest\sbenefit\sfrom\sindirect\sthreading\s(-DTEBC_INLINE_LEVEL=4\s-DUSE_COMPUTED_GOTO=1);\showever\scode\ssize\sdoes\salso\ssignificantly\sincrease\swith\sinline\slevel.\n\ntests\sdone\son\sa\spowerpc\s7455,\smay\swell\sbe\sdifferent\son\sother\sprocessors?\n\ndetailed\sbenchmark\snumbers\sforthcoming...\n\nFile\sAdded:\stclExecute-TEBCinline-compgoto.diff\n
J login das
J mimetype text/plain
J priority 6
J username das
K 1820448fffffffffffffffffffffffffffffffff
U das
Z 45c88780344368fbe4c6c8d57b95aaf9