Skip to content

Conversation

tzakian
Copy link
Contributor

@tzakian tzakian commented Feb 3, 2025

Switching the depth calculation of types to be lazily evaluated when we first encountered the value, coupled with shared package cache, and the types living in this shared package cache meant that the depth for a type needed to be made threadsafe since we may need to write to it in a parallel context.

This does this by RwLocking the depth field and then making the changes from there.

@tzakian tzakian requested a review from cgswords February 3, 2025 21:28
Copy link

vercel bot commented Feb 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2025 8:23pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Feb 19, 2025 8:23pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Feb 19, 2025 8:23pm

Copy link
Contributor

@cgswords cgswords left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

…to be threadsafe

Switching the depth calculation of types to be lazily evaluated when we
first encountered the value, coupled with shared package cache, and the
types living in this shared package cache meant that the `depth` for a
type needed to be made threadsafe since we may need to write to it in a
parallel context.

This does this by `RwLock`ing the `depth` field and then making the
changes from there.
@tzakian tzakian force-pushed the tzakian/vm-rewrite-adapter-8 branch from 72813de to b7a1aee Compare February 19, 2025 20:09
@tzakian tzakian force-pushed the tzakian/vm-rewrite-adapter-9 branch from aa3e12c to 64bed54 Compare February 19, 2025 20:09
@tzakian tzakian temporarily deployed to sui-typescript-aws-kms-test-env February 19, 2025 20:09 — with GitHub Actions Inactive
@tzakian
Copy link
Contributor Author

tzakian commented Mar 19, 2025

merged into the bella-ciao branch. Closing.

@tzakian tzakian closed this Mar 19, 2025
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.

2 participants