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

sage.structure.debug_options should be cimported #21096

Closed
jdemeyer opened this issue Jul 26, 2016 · 7 comments
Closed

sage.structure.debug_options should be cimported #21096

jdemeyer opened this issue Jul 26, 2016 · 7 comments

Comments

@jdemeyer
Copy link

Obvious low-hanging optimization fruit.

Component: performance

Author: Jeroen Demeyer

Branch/Commit: fb6ef31

Reviewer: Marc Mezzarobba

Issue created by migration from https://trac.sagemath.org/ticket/21096

@jdemeyer jdemeyer added this to the sage-7.3 milestone Jul 26, 2016
@jdemeyer
Copy link
Author

@jdemeyer
Copy link
Author

New commits:

fb6ef31sage.structure.debug_options should be cimported

@jdemeyer
Copy link
Author

Commit: fb6ef31

@mezzarobba
Copy link
Member

comment:3

LGTM, but I imagined this was intended to speed up parent creation, and I couldn't find an example where it made a measurable difference. Do you have one?

@mezzarobba
Copy link
Member

Reviewer: Marc Mezzarobba

@jdemeyer
Copy link
Author

comment:4

Replying to @mezzarobba:

LGTM, but I imagined this was intended to speed up parent creation, and I couldn't find an example where it made a measurable difference. Do you have one?

I don't think so. Anyway, this is a relatively old ticket and I don't remember the reason for creating the ticket. Probably it was just an easy fix that I saw.

And by the way, this ugliness

from cpython.object cimport PyObject
cdef extern from *:
    PyObject* __pyx_d

(<object>__pyx_d)["debug"] = debug

will be better once Cython 0.25 comes out.

@vbraun
Copy link
Member

vbraun commented Sep 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants