Skip unwanted checks in FrozenList.append Cythonized extension by using PyList_Append Directly. - #817
Open
Vizonex wants to merge 5 commits into
Open
Skip unwanted checks in FrozenList.append Cythonized extension by using PyList_Append Directly.#817Vizonex wants to merge 5 commits into
PyList_Append Directly.#817Vizonex wants to merge 5 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #817 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 383 383
Branches 9 9
=========================================
Hits 383 383
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What do these changes do?
This is an improved version of #712 That takes this behavior in steps rather than all at once. I'm mainly concerned with getting rid of all of these snippets that cython generates as I find it annoying and unnecessary.
If we change the Cython code to call
PyList_Append(self._items, item)instead the code is much more pleasing to cython and as these unwanted checks are skipped entirely.while I do find keeping the code being another issue entirely and what may have been preventing #712 from passing. I came up with a better solution that instead does everything in simple steps making things easier to review and easier to merge.
Final Resort if this is not merged
If this PR fails my final resort is to go to the Cython mainainters for help with getting this all fixed.
Are there changes in behavior for the user?
This will not change anything for the end user in fact this will improve performance for the end user.
Related issue number
This closes #712 and I will plan a different route to get everything in to remove what I have demonstrated above.
Checklist
CONTRIBUTORS.txtCHANGESfolder<issue_id>.<category>for example (588.bugfix)issue_idchange it to the pr id after creating the pr.bugfix: Signifying a bug fix..feature: Signifying a new feature..breaking: Signifying a breaking change or removal of something public..doc: Signifying a documentation improvement..packaging: Signifying a packaging or tooling change that may be relevant to downstreams..contrib: Signifying an improvement to the contributor/development experience..misc: Anything that does not fit the above; usually, something not of interest to users.