Skip to content

Fix super slow parameter search in low end devices#12869

Closed
rubenp02 wants to merge 1 commit intomavlink:masterfrom
Ventor-Innovations:bugfix/fix-slow-parameter-seach
Closed

Fix super slow parameter search in low end devices#12869
rubenp02 wants to merge 1 commit intomavlink:masterfrom
Ventor-Innovations:bugfix/fix-slow-parameter-seach

Conversation

@rubenp02
Copy link
Contributor

@rubenp02 rubenp02 commented May 17, 2025

Fix super slow parameter search in low end devices

Description

Updated the ParameterEditorController's _performSearch method to fix a misuse of QRegularExpression which led to a large regexp JIT overhead (source: https://forum.qt.io/topic/103687/qregularexpression-construction-time).

The method has also been slightly refactored to improve indentation and remove an unused local variable.

Checklist:

Related PR

#12866

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Updated the ParameterEditorController's _performSearch method to fix a
misuse of QRegularExpression which led to a large regexp JIT overhead
(source:
https://forum.qt.io/topic/103687/qregularexpression-construction-time).

The method has also been slightly refactored to improve indentation and
remove an unused local variable.
@HTRamsey
Copy link
Collaborator

Don't know if unit tests got hung up because of changes or just random. I'll try running them again

@DonLakeFlyer
Copy link
Collaborator

Replaced...

@rubenp02 rubenp02 deleted the bugfix/fix-slow-parameter-seach branch November 14, 2025 12:37
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.

3 participants