texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Efficiency of C++ switch-statements


From: Gabriel Dos Reis
Subject: Re: [Texmacs-dev] Efficiency of C++ switch-statements
Date: 11 Nov 2003 15:50:24 +0100

Joris van der Hoeven <address@hidden> writes:

[...]

| However, it might be interesting for the compiler to create
| a hashtable. The idea is that all cases are known beforehand,
| so the compiler might *choose* an efficient hash function for
| the particular purpose.

  Yes.  This is option (3) in my previous message.  However, GCC does
not do that.  Probably other optimizing compilers do that.  I guess,
once the tree-ssa work is merged, there will be more opportunities to
do (3). 

-- Gaby




reply via email to

[Prev in Thread] Current Thread [Next in Thread]