Memory-efficient batch processor.
This class processes logs in batches while monitoring memory usage
to prevent out-of-memory errors.
Instance methods
add_entry(entry :
LogEntry) :
Bool Add an entry to the current batch if memory allows.
Sourcebatch_ready?
Check if batch is ready for processing.
Sourcecurrent_memory_usage
Get current memory usage in bytes.
Sourcememory_usage_percent
Get current memory usage as percentage of max.
Source