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

Zod parsing of large election definitions is very slow and can affect a wide range of operations #5316

Open
arsalansufi opened this issue Aug 27, 2024 · 0 comments

Comments

@arsalansufi
Copy link
Contributor

arsalansufi commented Aug 27, 2024

While we removed Zod parsing from auth machine state polling in #5256, we retrieve the election definition as part of nearly every backend operation.

So when the election definition is large, nearly every operation is slowed down.

Ideally, we'd only Zod parse on configure. And then trust that the election definition is formatted correctly.

Note that, even with #5256, if the imported election definition is a CDF election definition, we'll still constantly Zod parse. This ultimately isn't a big deal as we don't expect consumers to be using CDF election definitions any time soon. We're just meeting a cert requirement for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant