Skip to content

Commit

Permalink
Turn closures off by default
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonReinhard committed Nov 1, 2024
1 parent a01b9a8 commit f0dbbc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/code_gen/function.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ in your top level.
## Keyword Arguments
`closures_size` (default=500): The size of closures to use in the main generated code. This specifies the size of code blocks across which the compiler cannot optimize. For sufficiently large functions, a larger value means longer compile times but potentially faster execution time.
`closures_size` (default=0 (off)): The size of closures to use in the main generated code. This specifies the size of code blocks across which the compiler cannot optimize. For sufficiently large functions, a larger value means longer compile times but potentially faster execution time.
"""
function get_compute_function(
graph::DAG, instance, machine::Machine, context_module::Module; closures_size=500
graph::DAG, instance, machine::Machine, context_module::Module; closures_size=0
)
tape = gen_tape(graph, instance, machine, context_module)

Expand Down

0 comments on commit f0dbbc7

Please sign in to comment.