summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2014-02-02 18:17:19 -0500
committerSøren Sandmann Pedersen <ssp@redhat.com>2014-02-02 18:17:19 -0500
commit3619578cb107e90e008f02ce3f73347d4314240c (patch)
tree1b43dd8d192247f26033a94c2b8ff58a74f66704
parent6c3ea9a6c7fc80a6c5cf637733f6b497fccd94ed (diff)
switch.c: Note about performance
-rw-r--r--switch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/switch.c b/switch.c
index c9437ed..1bed263 100644
--- a/switch.c
+++ b/switch.c
@@ -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);