[Top][All Lists]
[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
- Re: [Texmacs-dev] Efficiency of C++ switch-statements, (continued)
Re: [Texmacs-dev] Efficiency of C++ switch-statements, Dan Martens, 2003/11/10
Re: [Texmacs-dev] Efficiency of C++ switch-statements, Joris van der Hoeven, 2003/11/11
Re: [Texmacs-dev] Efficiency of C++ switch-statements, Dan Martens, 2003/11/11
Re: [Texmacs-dev] Efficiency of C++ switch-statements, Gabriel Dos Reis, 2003/11/11