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

Slow build time when exceeding 20 fields in form #113

Open
gv-sothebys-ivar opened this issue May 24, 2022 · 2 comments
Open

Slow build time when exceeding 20 fields in form #113

gv-sothebys-ivar opened this issue May 24, 2022 · 2 comments

Comments

@gv-sothebys-ivar
Copy link

Hi,

I'm using Re-Formality version 4.0.0.-beta-17 and noticed when exceeding more than 20 fields the build times goes up exponentially. In my project I need up to 50 fields and for that case it just doesn't even build.

I created a fresh project to test this, I only have one file implementing a simple form hook and added 20 fields to input, output and validate. I then added one field at a time to see the build time of the test project was growing and this was the result when reaching 25 fields:

image

Any idea why this is happening? I have used formality from earlier versions from you guys and I haven't had any problem with large forms before 🤔

I have added the test project as a zip so you can test this out for yourself
re-formality-test.zip

@alex35mil
Copy link
Member

Hi @gv-sothebys-ivar, thanks for the report. The earlier version was implemented without involving code generation, and the current one is a ppx.

That's unfortunate, but I won't be able to invest in this issue right now. Mainly due to being busy with relocation and the uncertainty of the future of PPXs in ReScript.

Let's review this in a couple of months.

@studious
Copy link

studious commented Apr 2, 2023

We've also had to skip this library due to the PPX taking too long to do code gen.

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

No branches or pull requests

3 participants