Skip to content

Incredibly Slow Dictionary Lookup when Debugging #192

Closed
@mattcbro

Description

@mattcbro

If there is a large enough array inside a dictionary it appears to slow the debugger to a crawl. Actually this example never really finishes in any sort of reasonable time when stepping through the debugger. This code uses the Juno interface, but I believe the debugger interface has the same problem.

This is happening under Julia 1.1.1 .

""" extract the raw data from dictionary """
function valdata(val)
    # next statement takes an infinite amount of time to step through
    xraw = val["rdat"] + 1.0im .* val["idat"]
    return(xraw)
end

ar = randn(3000,4000)
ai = randn(3000,4000)
vdat = Dict()
vdat["rdat"] = ar
vdat["idat"] = ai
vdat["num"] = pi
vdat["text"] = " This is text"

xcomp = Juno.@enter valdata(vdat)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions