-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfig.py
More file actions
47 lines (40 loc) · 1.32 KB
/
config.py
File metadata and controls
47 lines (40 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
debug=False #Various debug info
max_iter = 100000 #Stop loop unrolling after that much iterations
max_recursion = 10 #Stop inlining after that amount of recursion depth
max_unroll_ratio = 2.0 #Max acceptable unrolled_size/original_size ratio
simplify_function_calls = True
simplify_expressions = True
simplify_control_flow = True
use_or = True
use_unify = True
use_filtering_if = True
use_filtering_err = True
remove_dead_code = True
inline_max_statements = 1
#List of enabled plugins
enabled_plugins = [
"default",
]
delete_unused = True #Delete unused data from states (Performance will be really bad if you set this to False)
clean_top_objects = False #Delete objects that contain only top value
console_enable = True #Show expressions passed to console.log
merge_switch = False #force switch discriminant to be JSTop
regexp_rename = ['_0x', '............................', '_____*']
rename_length = 3
max_loop_context = 32
max_loop_context_nesting = 1
class Stats(object):
simplified_expressions = 0
simplified_expressions_tot = 0
inlined_functions = 0
inlined_functions_tot = 0
eval_processed = 0
eval_processed_tot = 0
loops_unrolled = 0
loops_unrolled_tot = 0
useless_statement = 0
useless_statement_tot = 0
useless_var = 0
useless_var_tot = 0
dead_code = 0
dead_code_tot = 0