Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[typespec-python] typespec-python emitter long installation time #2477

Open
catalinaperalta opened this issue Mar 28, 2024 · 2 comments
Open

Comments

@catalinaperalta
Copy link
Member

catalinaperalta commented Mar 28, 2024

I was recently testing cross-language generation and noticed that the typespec-python emitter takes a long time to generate a client library compared to the other language emitters (compared with C# and TypeScript). This behavior is consistent even when attempting to generate different service specifications.

Version used: "@azure-tools/typespec-python": "0.22.4"

Specifications to test out:

  • Content Safety
  • Document Intelligence
  • Purview DataMap

The typespec-python emitter seems to hang for a few moments, the typespec-ts and typespec-csharp emitters complete generation almost immediately.

@catalinaperalta
Copy link
Member Author

catalinaperalta commented Mar 28, 2024

Also, something that seems to be adding to the amount of time it takes to generate with the typespec-python emitter, is that dependency installation for this package also takes longer than other language emitters.

@catalinaperalta
Copy link
Member Author

catalinaperalta commented Apr 10, 2024

Following up on this, I was doing some testing on my end and it seems generating is not what takes a long time. Installing the package takes the bulk of the time when working with the typespec-python emitter.

@catalinaperalta catalinaperalta changed the title [typespec-python] typespec-python emitter seems to hang when generating [typespec-python] typespec-python emitter long installation time Apr 10, 2024
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

No branches or pull requests

1 participant