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

Remove comments extraction not used and very slow on newer python versions #1188

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

guillett
Copy link
Member

Comments extraction is not tested, doesn't seem to be used and is making the API very very very slow.

I am currently refactoring this section, it remains the source code extraction and generation but for comments it looks simpler as the logic can be removed.

Breaking changes

  • In Variable.get_introspection_data:
    • comments removed from the tuple returned

232 seconds spent for an unused feature here:

Screenshot 2023-07-10 at 18-30-38 full_7minutes_profile3

A single long findsource trace (and I'm working on it, I extracted that PR from my work)

Screenshot 2023-07-10 at 18-36-42 without_comments

@coveralls
Copy link

Coverage Status

coverage: 73.985% (-0.005%) from 73.99% when pulling 3ec9c9f on faster-api into 94f68f4 on master.

Copy link
Member

@MattiSG MattiSG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulations for the performance analysis!

@guillett
Copy link
Member Author

I would like to merge this PR with #1189 to avoid two major version bumps. I will wait a couple of days and if it looks like it's better to split them, I'll merge them separately.

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