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

Fix exception check for Cython migration to 3.0 #558

Merged
merged 5 commits into from
Dec 6, 2023

Conversation

tqtg
Copy link
Member

@tqtg tqtg commented Dec 5, 2023

Description

Cython migration from version 0.29 to 3.0 requires users to explicitly specify no exception check for function. Previously, it was added implicitly. Doing exception check will acquire GIL and create overhead leading to slower performance for certain functions. This fix is to add noexcept keyword where it's needed.

Related Issues

#557

Checklist:

  • I have added tests.
  • I have updated the documentation accordingly.
  • I have updated README.md (if you are adding a new model).
  • I have updated examples/README.md (if you are adding a new example).
  • I have updated datasets/README.md (if you are adding a new dataset).

Copy link
Member

@lthoang lthoang left a comment

Choose a reason for hiding this comment

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

LGTM

@tqtg tqtg merged commit fb83104 into PreferredAI:master Dec 6, 2023
12 checks passed
@tqtg tqtg deleted the fix-noexcept branch December 6, 2023 05:50
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.

2 participants