Skip to content

jit code debug registration is O(n^2) #14846

@JeffBezanson

Description

@JeffBezanson

Julia now runs extremely slowly inside GDB. I traced this to NotifyDebugger, which seems to call __jit_debug_register_code on an ever-growing linked list of functions. I confirmed that the slowdown is quadratic by printing the wall-clock time on each debug info registration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler:codegenGeneration of LLVM IR and native codeperformanceMust go fasterregressionRegression in behavior compared to a previous versionupstreamThe issue is with an upstream dependency, e.g. LLVM

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions