Skip to content

The "Search in code" is truly parallel (multithreaded) again, and more - #2481

Open
VladiStep wants to merge 2 commits into
UnderminersTeam:masterfrom
VladiStep:searchInCodeProgressUpdater
Open

VladiStep wants to merge 2 commits into
UnderminersTeam:masterfrom
VladiStep:searchInCodeProgressUpdater

Conversation

@VladiStep

@VladiStep VladiStep commented Aug 29, 2026 •

Copy link
Copy Markdown
Member

Description

  1. Instead of manually advancing the progress bar on each code entry in the "Search in code" by invoking the UI thread, it now uses the progress bar updater (a background task), like it was in "Search.csx" script.
    This makes it work noticeably faster (~40% in some cases, see below).
    Fixes The code searching is not truly parallel (multithreaded) anymore. #2237.

I tested this on "123" search query in Deltarune Chapter 5 (UTMT built in the "Release" mode) and here is a comparison:
The first search, the second and third, in seconds:
Before: 2.160, 2.045, 1.392.
After: 1.523, 1.334, 0.710.

  1. Added a new CloseProgressBar() method; the progress bar window is properly closed (scriptDialog.TryClose()) instead of hiding it.
    Fixes Phantom progress bar windows on hover. #1616.

  2. Fixed the "MainWindow.xaml.cs" formatting - now it's spaces ("SPC") and \n line endings ("LF").

Caveats

None.

@github-actions

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The code searching is not truly parallel (multithreaded) anymore. Phantom progress bar windows on hover.

1 participant