Skip to contents

Store optimization history with periodic thinning to avoid memory issues in very long runs.

Usage

update_history_efficient(
  history,
  new_row,
  max_rows = 10000,
  thin_interval = 10
)

Arguments

history

Current history data.table

new_row

New row to add

max_rows

Maximum rows to keep

thin_interval

Keep every Nth row when thinning

Value

Updated history