Skip to content

Perf improvments#3070

Merged
iscai-msft merged 3 commits intomainfrom
perf-improvements
Apr 18, 2025
Merged

Perf improvments#3070
iscai-msft merged 3 commits intomainfrom
perf-improvements

Conversation

@catalinaperalta
Copy link
Member

The black plugin was causing the python emitter to take over 2-4 minutes to run in some cases. For example, when using the python emitter with tsp-client folks frequently run into this issue. Removed the black plugin and moved that logic directly into the emitter. With these updates the emitter takes about 15 seconds to run. ~90% improvement in perf which will be a noticeable improvement for python emitter users.

Related PR: microsoft/typespec#6979

@iscai-msft iscai-msft enabled auto-merge (squash) April 18, 2025 18:13
@iscai-msft iscai-msft merged commit cdcf3ef into main Apr 18, 2025
15 checks passed
@iscai-msft iscai-msft deleted the perf-improvements branch April 18, 2025 18:43
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.

3 participants