Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Memory optimization for logbook #21549
As suggested by @balloob, this PR reworks the logbook a bit to keep less data in memory. This is done with a generator function that yields just the events that are not excluded rather than keeping the entire result set in memory (twice, I think).
In my limited testing, memory usage decreases significantly while the running time remains similar.
If the code does not interact with devices: