Skip to content

Conversation

@gucio321
Copy link
Collaborator

as said in the 1st commit, codegen should use gofumpt internally rather than requiring user to do so.

generally calling formatters on the generated code should be done by generator itself.

Current apprach was: it generates something and if you want to read this gofumpt it yourself
now makefile dosn't call gofumpt at all
@gucio321
Copy link
Collaborator Author

This also speeds up generation process around 3 times!

stats before:
real	0m30.392s
user	1m3.656s
sys	0m37.289s

after:

real	0m8.141s
user	0m37.917s
sys	0m25.941s

@gucio321 gucio321 merged commit 523f067 into AllenDang:main Dec 22, 2024
5 checks passed
@gucio321 gucio321 deleted the codegen-use-gofumpt branch December 22, 2024 14:38
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.

1 participant