Skip to content

[ Performance ] no DOM virtualization, one <span> per changed character. #16

Description

@kmc-simon-coghlan

TextDiffPane.razor/TextDiffLine.razor render every line and every changed character into the DOM eagerly
— a nested per changed word/character, for the whole document, all at once.

The WinForms baseline uses ScintillaDiffControl (native Scintilla control), which is a virtualized editor that only renders the visible viewport regardless of document size. For a large JSON dump, Blazor could be constructing tens/hundreds of thousands of DOM nodes up front inside a BlazorWebView (WebView2)

— this is a plausible explanation for "never appears to complete," independent of any redundant-recompute bug.

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