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
Clean up various Cython cimports #27237
Comments
Branch: u/jdemeyer/ticket/27237 |
This comment has been minimized.
This comment has been minimized.
New commits:
|
Commit: |
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Reviewer: Marc Mezzarobba |
comment:8
Did anyone check if the changes to |
comment:9
I didn't specifically check this case, but I know that Cython generates reasonably efficient code for list comprehensions. Maybe there is room for improvement, but it can't be much. In any case, it should be fixed upstream in Cython and not by writing ugly C API code. Then every list comprehension benefits from it, not just these two in |
comment:10
Here are some timings on a simple example, using either a list comprehension or the C API calls:
|
comment:11
Thanks for running the tests (I was just going to do them this morning). The benefit to doing the |
comment:12
I opened a Cython issue: cython/cython#2844 |
Changed branch from u/jdemeyer/ticket/27237 to |
This includes much simpler implementations of
permutation_iterator_transposition_list()
andmap_to_list
using Cython list comprehensions instead of C API calls.CC: @tscrim
Component: cython
Author: Jeroen Demeyer
Branch/Commit:
2c720ee
Reviewer: Marc Mezzarobba
Issue created by migration from https://trac.sagemath.org/ticket/27237
The text was updated successfully, but these errors were encountered: