Skip to content

Apparent inifite time to process code #4

Description

@WeeBull

I using SourceGraph (actually the @utdemir fork, so it'll build) some parser code that I've written to try to identify recursive loops in the type graph and call graph. I seems that I'm managing to throw SourceGraph into an infinite loop, as processing never completes (24 hours later, still going, no files written to SourceGraph/graphs apart from the legend PNGS and a zero length code.dot).

I think it's getting lost in code associated with finding cycles and cliques. Profiling shows this:

COST CENTRE          MODULE                                %time %alloc

pathTree.subPathTree Data.Graph.Analysis.Algorithms.Common  51.9   53.5
pathTree.g'          Data.Graph.Analysis.Algorithms.Common  32.7   36.4
pathTree             Data.Graph.Analysis.Algorithms.Common   4.0    5.0 
makeLeaf.p'          Data.Graph.Analysis.Algorithms.Common   3.1    3.1
pathTree.sucs        Data.Graph.Analysis.Algorithms.Common   3.1    0.4

I've attached a full profile from the first five minutes of running.
SourceGraphProf.zip

Any suggestions on how I can get around this problem?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions