Skip to content

Commit efb9f0c

Browse files
committed
Reduce allocations in precompilation workload
1 parent 9d195e5 commit efb9f0c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/precompile.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ end
161161
"""`mode=:precompile` will use `@precompile_*` directives; `mode=:compile` runs."""
162162
function do_precompilation(; mode=:precompile)
163163
@maybe_setup_workload mode begin
164-
binary_operators = [[+, -, *, /]]
165-
unary_operators = [[sin, cos]]
166-
turbo = [Val(false)]
167-
types = [Float32, Float64]
164+
binary_operators = ((+, -, *, /),)
165+
unary_operators = ((sin, cos),)
166+
turbo = (Val(false),)
167+
types = (Float32, Float64)
168168
@maybe_compile_workload mode begin
169169
test_all_combinations(;
170170
binary_operators=binary_operators,

0 commit comments

Comments
 (0)