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

improve tracing performance with f_trace set to Py_None #71405

Open
xdegaye mannequin opened this issue Jun 4, 2016 · 1 comment
Open

improve tracing performance with f_trace set to Py_None #71405

xdegaye mannequin opened this issue Jun 4, 2016 · 1 comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@xdegaye
Copy link
Mannequin

xdegaye mannequin commented Jun 4, 2016

BPO 27218
Nosy @birkenfeld, @xdegaye, @serhiy-storchaka
PRs
  • bpo-27218 : improve tracing performance with f_trace set to Py_None #16157
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2016-06-04.16:27:47.484>
    labels = ['type-feature', 'library']
    title = 'improve tracing performance with f_trace set to Py_None'
    updated_at = <Date 2019-09-15.13:23:40.914>
    user = 'https://github.com/xdegaye'

    bugs.python.org fields:

    activity = <Date 2019-09-15.13:23:40.914>
    actor = 'nanjekyejoannah'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2016-06-04.16:27:47.484>
    creator = 'xdegaye'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 27218
    keywords = ['patch']
    message_count = 1.0
    messages = ['267262']
    nosy_count = 3.0
    nosy_names = ['georg.brandl', 'xdegaye', 'serhiy.storchaka']
    pr_nums = ['16157']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue27218'
    versions = ['Python 3.6']

    @xdegaye
    Copy link
    Mannequin Author

    xdegaye mannequin commented Jun 4, 2016

    When a trace function set by sys.settrace() returns None, tracing of the current scope should stop, but this feature is not implemented (bpo-11992).
    Currently f_trace is never set to Py_None. Setting f_trace to Py_None in trace_trampoline() when the trace function returns Py_None provides a way to avoid the costly calls to maybe_call_line_trace() that are made for each line in this scope even though the trace function is not called. This idea was initiated in bpo-20041.

    @xdegaye xdegaye mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Jun 4, 2016
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants