Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902732

Cache instance sizes during GraphWalker::walk

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • tools
    • None
    • jol

      Without instrumentation being available, the GraphPathRecord::size always calls to VM.current().sizeOf(o), which goes to reflection to figure things out. It is costly for many graphs that have many instances only of few classes. Caching the sizes during the GraphWalker::walk optimizes this without retaining the cache after the walk is done.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: