|author||Søren Sandmann Pedersen <email@example.com>||2014-02-02 18:17:19 -0500|
|committer||Søren Sandmann Pedersen <firstname.lastname@example.org>||2014-02-02 18:17:19 -0500|
switch.c: Note about performance
1 files changed, 3 insertions, 0 deletions
@@ -68,6 +68,9 @@ switch_check (ast_t *ast)
* like "2.0" and "2" compare equal? It is just much simpler and more
* robust to rely on the EQUAL operator, which is what the interpreter
* is using anyway.
+ * With 200000 cases in a single switch, this function completely
+ * dominates the profile, so maybe do something about it some day.
bool = ast_type_spec_new (AST_BOOL_TYPE);