graph-program icon indicating copy to clipboard operation
graph-program copied to clipboard

Graph Program V3

Open kevinrodriguez-io opened this issue 3 years ago • 0 comments

** DO NOT MERGE **

This PR includes a proposal to move to Account resizing and avoiding PDA spam by creating a single Storage Account.

Pros:

  • Simpler structure
  • Probably more performant at Sealevel
  • Easier to Index
  • Easier to add bulk follow IXs in the future
  • Easier to cache client-side

Cons:

  • Anchor not playing nice with HashSets yet so need to deal with Vec searching back and forth (Probably worth to add manual de/ser) or try beet by Metaplex
  • Bulky reads of unnecessary data sometimes

Pending:

  • [ ] Create migration scripts, IXs from V2->V3
  • [ ] Use HashSet structure instead of Vectors or start looking at Merkle roots

kevinrodriguez-io avatar Dec 10 '22 18:12 kevinrodriguez-io