Skip to content

Investigate 1 MiB-line scroll/repaint timing difference #15

Open

Description

@itlezy

Paired manual benchmark found a repeatable difference worth investigating before declaring performance parity. This is an investigation, not approval for optimization or a Scintilla upgrade.

Published x64 v4.2.25.1029-rc.1 vs v4.2.25.1040-rc.1; seven warm-cache samples after warmup, rotated mode order, same machine/viewport, generated plain-text files, pywinauto/psutil outside the editor.

For a 1 MiB single line:

  • 40 scroll/repaint moves: previous Original median 276.1 ms (MAD 4.3, range 252.7–316.7); current Original 349.5 ms (MAD 10.6, range 333.5–375.2); current Dark 357.1 ms (MAD 21.9).
  • 100 edit/undo pairs: 10,927 ms / 11,210 ms / 11,190 ms respectively.
  • Loading: 121.3 / 121.5 / 121.8 ms; private memory: 11,936 / 11,980 / 11,924 KiB.
  • 128 KiB and 25 MiB loading/private-memory results are close; sampled idle CPU medians are zero.

Data will be stored at tests/baselines/published-1029-vs-1040.json. Tool: tests/benchmark_editor.py. These numbers include automation/Win32 round-trip overhead, visible-window repaint, and possible compositor/scanner/machine-load effects; they do not establish a root cause or physical input latency.

Next step: repeat only the affected workload on the same desktop, compare locally built baseline/candidate with an identical compiler/toolchain, and separate layout from actual repaint. Check font/DPI/window state before profiling. Propose only a small patch if a specific regression is confirmed. Do not import frameworks, new dependencies into the app, engine upgrades, or broad rendering rewrites.

Activity

  1. itlezy commented on Nov 9, 2026

    @itlezy
    OwnerAuthor

    The benchmark and recorded seven-run raw samples are now merged in #16. Data: https://github.com/itlezy/notepad2-mod/blob/master/tests/baselines/published-1029-vs-1040.json

    Reproduce using tests/benchmark_editor.py and the published release executables. This issue remains open for the bounded investigation described above; no speculative rendering changes were included.

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