Skip to content

Improve generation time - #11932

Draft
Alan Zimmer (alzimmermsft) wants to merge 5 commits into
mainfrom
ImproveGenerationTime
Draft

Alan Zimmer (alzimmermsft) wants to merge 5 commits into
mainfrom
ImproveGenerationTime

Conversation

@alzimmermsft

Copy link
Copy Markdown
Contributor

Update code generation to improve generation time with the following changes:

  • Update Google Java Format and Eclipse JDT dependencies to latest versions supporting our Java 17 baseline.
  • Reuse JavaParser parsed files between code customizations, partial update, and import sorting to reduce repetitive work.
  • Use in-code compilation to ready code customizations rather than a call to mvn compiler:compile.
  • Add parallelization to code formatting.
  • Added formatting fences to JSON schemas in Javadoc to prevent parsing errors in Eclipse formatting.
  • Added guard in fluentnamer to only dump YAML when debugging as it isn't a cheap task.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:java Issue for the Java client emitter: @typespec/http-client-java label Sep 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

All changed packages have been documented.

  • @typespec/http-client-java
Show changes

@typespec/http-client-java - fix ✏️

Improve Java generation performance by compiling customizations in memory, sharing parsed Java files across customization, partial update, and import ordering, tokenizing import headers for untouched files, using bounded parallel formatting, preserving schema Javadocs without parsing their contents as Java, and writing ARM debug code models only when debugging is enabled. Customizations continue to run before partial update. Formatter parallelism can be limited when generating multiple clients concurrently.

@typespec/http-client-java - dependencies ✏️

Update Eclipse JDT Core to 3.47.0, ECJ to 3.46.100, and the Eclipse platform dependencies to their latest Java 17-compatible releases.

@azure-sdk-automation

azure-sdk-automation Bot commented Sep 10, 2026

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

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

Labels

emitter:client:java Issue for the Java client emitter: @typespec/http-client-java

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant