econia-labs / econia

Hyper-parallelized on-chain order book for the Aptos blockchain

Home Page:https://econia.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consolidate open order tracking via ID

alnoki opened this issue · comments

commented

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.