Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consolidate open order tracking via ID #96

Open
alnoki opened this issue Mar 20, 2023 · 0 comments
Open

Consolidate open order tracking via ID #96

alnoki opened this issue Mar 20, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@alnoki
Copy link
Member

alnoki commented Mar 20, 2023

Presently, a user has their open order tracked at both the order book level and at the market account level.

This schema introduces synchronization overhead, including global storage cost increases.

Alternatively, a user's market account could be updated to simply contain a vector of open order IDs: when an order is filled or cancelled, only the vector has to be updated. This reduces global borrows.

@alnoki alnoki added the enhancement New feature or request label Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant