Skip to content

Conversation

@msyyc
Copy link
Contributor

@msyyc msyyc commented Jan 27, 2026

fix #9448

PR summary:

  • The main optimization is to cache the cost operation in import_sample_cache and import_test_cache so that they could be reused in test generation and sample generation. The more test/samples to generate, the more time to save. For example, cost time of SDK generation for Apimanagement is reduced from 47 minutes to 4 minutes.

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Jan 27, 2026
@msyyc msyyc force-pushed the python-sample-test-generation-optimization branch from 03c1731 to aa825eb Compare January 27, 2026 05:25
@github-actions
Copy link
Contributor

github-actions bot commented Jan 27, 2026

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - internal ✏️

Optimize sdk generation performance

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jan 27, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 29, 2026

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/http@9473
npm i https://pkg.pr.new/microsoft/typespec/@typespec/http-client@9473

commit: 96cf673

@msyyc msyyc changed the title [Python] optimize perf [Python] optimize perf for test generation and sample generation Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Python][Perf] optimize speed to generate sdk

3 participants