Skip to content

Conversation

@MartinquaXD
Copy link
Contributor

Description

While looking into high memory usage of the autopilot we stumbled over the fact that we are not using the memory very well when building the auction.
This PR addresses some very low hanging fruit.

Changes

  • wrap orders and quotes in Arc to have cheap clones while not having to mess around with lifetimes (references)
  • only deep clone the orders / quotes that survived the filtering (that's already ~5k expensive clones saved right there)
  • don't deep clone any orders / quotes for future that incrementally updates auction

How to test

TODO: deploy to prod and measure impact

@MartinquaXD MartinquaXD changed the title Avoid cloning when creating checkpoints for metrics Avoid clones while building the auction Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant