Overview
| Artifact ID: | a71d468457de054335355f40b08d49373d13c400 |
|---|---|
| Ticket: | 1820448fffffffffffffffffffffffffffffffff
TEBC: replace giant switch by computed goto |
| User & Date: | das on 2007-11-10 02:18:33 |
Changes
- icomment:
File Added - 253600: tclExecute-TEBCinline-compgoto.diff Logged In: YES user_id=90580 Originator: YES updated patch attached: - now includes configure checks for computed goto and __builtin_expect availability - added configurable inlining of common code into the NEXT_INST_{F,V} macros according to TEBC_INLINE_LEVEL: 0 no inlining 1 inline cleanup code 2 also inline async handler and other check code 3 also inline peephole gotos 4 also do indirect threading (direct computed goto to next instruction) (level 4 obviously only makes sense when computed gotos are available, but the others are effective for the giant switch as well). - configuration of inline level & computed goto use is currently manual via the defines at the top of tclExecute.c I see improved performance with inceasing inline level, for both giant switch and computed goto, with the biggest benefit from indirect threading (-DTEBC_INLINE_LEVEL=4 -DUSE_COMPUTED_GOTO=1); however code size does also significantly increase with inline level. tests done on a powerpc 7455, may well be different on other processors? detailed benchmark numbers forthcoming... File Added: tclExecute-TEBCinline-compgoto.diff - login: "das"
- mimetype: "text/plain"
- priority changed to: "6"
- username: "das"