Skip to content

Commit

Permalink
Avoid extra allocation to record type
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Dec 23, 2023
1 parent 7d48f70 commit f5ccffd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/SymbolicRegression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,8 @@ function _equation_search(
RunningSearchStatistics(; options=options) for j in 1:nout
]

record = RecordType("options" => "$(options)")
record = RecordType()
@recorder record["options"] = "$(options)"

curmaxsizes = if iszero(options.warmup_maxsize_by)
fill(options.maxsize, nout)
Expand All @@ -646,7 +647,14 @@ function _equation_search(
##########################################################################
if parallelism == :multiprocessing
(procs, we_created_procs) = configure_workers(;
procs, numprocs, addprocs_function, options, exeflags, example_dataset, runtests
procs,
numprocs,
addprocs_function,
options,
exeflags,
verbosity,
example_dataset,
runtests,
)
end
# Get the next worker process to give a job:
Expand Down

0 comments on commit f5ccffd

Please sign in to comment.