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

Validate zod only in dev #802

Merged
merged 1 commit into from
Mar 20, 2024
Merged

Validate zod only in dev #802

merged 1 commit into from
Mar 20, 2024

Conversation

grod220
Copy link
Collaborator

@grod220 grod220 commented Mar 20, 2024

Given we do this on each block save and block sync is performance critical, we should only validate in dev mode. I don't notice a difference (at least on my machine), but still best to do.

See discord for context: https://discord.com/channels/824484045370818580/1044457038886998137/1220036483612807298

@TalDerei
Copy link
Contributor

doesn't seem to make much difference on my machine

chrome-store
chrome-store

development
dev

@grod220
Copy link
Collaborator Author

grod220 commented Mar 20, 2024

Yeah, I think the chrome profiler is misattributing to zod. But regardless, I suppose it's best to do this anyway. I believe it's really the json serialization stuff we are seeing there.

@grod220 grod220 merged commit a00639d into main Mar 20, 2024
6 checks passed
@grod220 grod220 deleted the temper-zod branch March 20, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants