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

opt: reduce class creation generated code #2076

Merged
merged 1 commit into from
Dec 24, 2021

Conversation

davidhewitt
Copy link
Member

Reduces the amount of LLVM code generated per #[pyclass], by changing generic methods tp_doc, get_type_name and py_class_members to concrete forms with values passed from T::create_type_object.

Gave about a 5% reduction to the LLVM lines on the pyo3-pytests lib.

@davidhewitt davidhewitt merged commit ebed1db into PyO3:main Dec 24, 2021
@davidhewitt davidhewitt deleted the opt-class-creation branch December 24, 2021 01:47
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.

1 participant