Skip to content

Problems view title update blocks UI 2-36s: Markers.getMarkerCounts walks all markers, each doing ElementTree lookups #4404

Open

Description

@lyh061619

With a large workspace (tens of thousands of markers), any marker change
triggers ExtendedMarkersView.updateTitle -> Markers.getMarkerCounts, which
iterates ALL markers; each Marker.getAttribute() performs a workspace
ElementTree traversal. Durations escalated over 2 days: 2.4s -> 17s (BLOCKED on
marker lock) -> 36s.

Samples:
Markers.getMarkerCounts -> Marker.getAttribute -> MarkerManager.findMarkerInfo
-> Workspace.getResourceInfo -> ElementTree.getElementData

Also: editor caret movement triggers ExtendedMarkersView.setSelection ->
Markers.getMarkerItem (BLOCKED 17s) waiting on the same marker model lock.

Expected: incremental counts or caching; selection lookup should not contend
with bulk counting.

(search "Problems view slow" / "getMarkerCounts" first and add samples if an
open issue exists)

Activity

  1. vogella commented on Sep 30, 2026

    @vogella
    Contributor

    Most of it is should already be fixed on master with my commit c9996e4 ("Keep marker attribute access off the UI thread in the markers view", merged 2026-08-31).

    Can you re-test with the latest I-Build from https://download.eclipse.org/eclipse/downloads/drops4/I20260928-2300/?

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions