|[7 earlier articles]|
|Re: Dynamic Typing Efficiency firstname.lastname@example.org (Jeff Kenton) (2005-05-09)|
|Re: Dynamic Typing Efficiency email@example.com (2005-05-13)|
|Re: Dynamic Typing Efficiency alexc@TheWorld.com (Alex Colvin) (2005-05-13)|
|Re: Dynamic Typing Efficiency firstname.lastname@example.org (Calum Grant) (2005-05-13)|
|Re: Dynamic Typing Efficiency email@example.com (Aaron Gray) (2005-05-16)|
|Re: Dynamic Typing Efficiency DrDiettrich@compuserve.de (Hans-Peter Diettrich) (2005-05-18)|
|Re: Dynamic Typing Efficiency firstname.lastname@example.org (Jeff Kenton) (2005-05-22)|
|From:||Jeff Kenton <email@example.com>|
|Date:||22 May 2005 00:56:07 -0400|
|Keywords:||C++, types, performance|
Calum Grant wrote:
> I'm thinking that you could do something sneaky with C++ template
> meta-programming. You could construct a template
> and statically generate the appropriate function. Then you use
> meta-programming again to generate an array of these things, and put
> them into a large jump-table.
There's a difference between minimizing the number of lines of code
you have to write and optimizing runtime performance. This suggestion
sounds like it might make it easier to write the compiler (not a bad
thing, of course) but not have much effect on the performance of the
compiler or the generated code.
Return to the
Search the comp.compilers archives again.