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

[Clarity VM] Contract AST is stored as plain-text JSON #4036

Closed
cylewitruk opened this issue Nov 6, 2023 · 1 comment
Closed

[Clarity VM] Contract AST is stored as plain-text JSON #4036

cylewitruk opened this issue Nov 6, 2023 · 1 comment
Labels
locked optimization Update speed, efficiency, or quality of a feature.

Comments

@cylewitruk
Copy link
Member

Clarity contract AST's are atm stored as plain-text JSON in the Clarity DB (chainstate/vm/clarity/marf.sqlite). The current average AST storage size is 7kb over 78.5k contracts (my dataset is about a month old). We could either use compression, or opt for a more compact and performant binary format (such as MessagePack or PerfBuf) and reduce both the storage requirements and (de)serialization speeds dramatically.

Not prio atm, so creating this as a placeholder.

@cylewitruk cylewitruk added enhancement Iterations on existing features or infrastructure. optimization Update speed, efficiency, or quality of a feature. and removed enhancement Iterations on existing features or infrastructure. labels Nov 6, 2023
@cylewitruk cylewitruk closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2024
@blockstack-devops
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Oct 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked optimization Update speed, efficiency, or quality of a feature.
Projects
None yet
Development

No branches or pull requests

2 participants