Skip to content

JavaSourceUiDescriber scans the entire document to detect GUI files; should be bounded #1641

Description

@lyh061619

Body:
WindowBuilder registers a by-contents content describer (JavaSourceUiDescriber)
that reads the whole file to look for GUI markers. Most describers inspect only
a prefix; this one makes EVERY content-type query on a large file O(file size).

(Stack: see LSP4E issue 3a — org.eclipse.wb.internal.core.editor.describer.
JavaSourceUiDescriber.describe called via ContentTypeCatalog.describe on every
LSP4E query.)

Expected: bound the scan (e.g. first N KB) or use a cheap heuristic first.

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

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions