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

Added literal syntax to create the data structure #1813

Merged
merged 1 commit into from
Apr 30, 2022

Conversation

Biki-das
Copy link
Contributor

Pull Request Template

Using the literal syntax can give minor performance bumps compared to using function calls to create dict, list and tuple.

This is because here, the name dict must be looked up in the global scope in case it has been rebound. Same goes for the other two types list() and tuple().

@Biki-das Biki-das requested a review from sgoggins as a code owner April 24, 2022 17:51
Signed-off-by: Biki Das <bikid475@gmail.com>
@sgoggins
Copy link
Member

@Dhruv-Sachdev1313 : Could you have a look at this? _

Copy link
Member

@Dhruv-Sachdev1313 Dhruv-Sachdev1313 left a comment

Choose a reason for hiding this comment

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

I don't think it would affect the working of the dependency worker, just feels like a more pythonic way of doing stuff! So LGTM.

@Biki-das
Copy link
Contributor Author

I don't think it would affect the working of the dependency worker, just feels like a more pythonic way of doing stuff! So LGTM.

Yup it's a small minor improvement!

@sgoggins sgoggins changed the base branch from main to spg-patch-abg April 30, 2022 17:58
@sgoggins sgoggins merged commit cb0cf65 into chaoss:spg-patch-abg Apr 30, 2022
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.

None yet

3 participants