Skip to content

Conversation

@ohmayr
Copy link
Contributor

@ohmayr ohmayr commented Jan 13, 2026

The generator builds its API model in two stages:

  1. Discovery: Identifying all messages, enums, and services.
  2. Generation: Resolving names and rendering Python code.

This change bypasses the expensive naming collision analysis during the Discovery stage. Since naming is fully re-calculated during the Generation stage, performing it twice is redundant and significantly slows down the build for large APIs.

Verification:

  • zero-diff in output (verified via goldens).

@ohmayr ohmayr requested a review from a team as a code owner January 13, 2026 08:35
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Jan 13, 2026
@ohmayr ohmayr requested a review from parthea January 13, 2026 08:36
@ohmayr ohmayr marked this pull request as draft January 13, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants