diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2014-02-02 18:17:19 -0500 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2014-02-02 18:17:19 -0500 |
commit | 3619578cb107e90e008f02ce3f73347d4314240c (patch) | |
tree | 1b43dd8d192247f26033a94c2b8ff58a74f66704 | |
parent | 6c3ea9a6c7fc80a6c5cf637733f6b497fccd94ed (diff) |
switch.c: Note about performance
-rw-r--r-- | switch.c | 3 |
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); |