Skip to content

Make generation async#158

Merged
konowrockis merged 5 commits into
mainfrom
feat/async-generation
Jan 8, 2026
Merged

Make generation async#158
konowrockis merged 5 commits into
mainfrom
feat/async-generation

Conversation

@konowrockis

Copy link
Copy Markdown
Member

This PR refactors the contracts generator to support parallel execution of file generation and plugin processing. The main change converts the sequential file generation loop into a parallelized Promise.all approach, allowing multiple output files to be generated concurrently. Similarly, plugin execution within each file has been parallelized, with all plugin lifecycle hooks (beforeAll, before, generate, after, afterAll) running in parallel and their outputs collected into arrays. Not sure if this will actually speed up antyhing but since I already had it implemented it won't hurt, yes?

Comment thread packages/generator/src/generateFile.ts Outdated
@konowrockis konowrockis requested a review from Komoszek January 7, 2026 13:54
@konowrockis konowrockis merged commit c48b500 into main Jan 8, 2026
1 check passed
@konowrockis konowrockis deleted the feat/async-generation branch January 8, 2026 08:22
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.

4 participants