- Notifications
You must be signed in to change notification settings - Fork5
Commit1879175
committed
Fix performance bug in constant-expression simplifier. After finding
that the inputs to a given operator can be recursively simplified toconstants, it was evaluating the operator using the op's *original*(unsimplified) arg list, so that any subexpressions had to be evaluatedagain. A constant subexpression at depth N got evaluated N times.Probably not very important in practical situations, but it made us lookreal slow in MySQL's 'crashme' test...1 parentef3386a commit1879175
1 file changed
+13
-5
lines changedLines changed: 13 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
991 | 991 |
| |
992 | 992 |
| |
993 | 993 |
| |
994 |
| - | |
995 |
| - | |
996 |
| - | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
997 | 1004 |
| |
998 | 1005 |
| |
999 | 1006 |
| |
1000 | 1007 |
| |
1001 | 1008 |
| |
1002 | 1009 |
| |
1003 |
| - | |
| 1010 | + | |
1004 | 1011 |
| |
1005 | 1012 |
| |
| 1013 | + | |
1006 | 1014 |
| |
1007 | 1015 |
| |
1008 | 1016 |
| |
|
0 commit comments
Comments
(0)