Related articles |
---|
[7 earlier articles] |
Re: Dynamic Typing Efficiency jeffrey.kenton@comcast.net (Jeff Kenton) (2005-05-09) |
Re: Dynamic Typing Efficiency clearm@comcast.net (2005-05-13) |
Re: Dynamic Typing Efficiency alexc@TheWorld.com (Alex Colvin) (2005-05-13) |
Re: Dynamic Typing Efficiency calumg@onetel.com (Calum Grant) (2005-05-13) |
Re: Dynamic Typing Efficiency angray@beeb.net (Aaron Gray) (2005-05-16) |
Re: Dynamic Typing Efficiency DrDiettrich@compuserve.de (Hans-Peter Diettrich) (2005-05-18) |
Re: Dynamic Typing Efficiency jeffrey.kenton@comcast.net (Jeff Kenton) (2005-05-22) |
From: | Jeff Kenton <jeffrey.kenton@comcast.net> |
Newsgroups: | comp.compilers |
Date: | 22 May 2005 00:56:07 -0400 |
Organization: | Compilers Central |
References: | 05-05-041 05-05-066 |
Keywords: | C++, types, performance |
Posted-Date: | 22 May 2005 00:56:07 EDT |
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.
jeff
Return to the
comp.compilers page.
Search the
comp.compilers archives again.