Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split out the QRegExp in logging to get compiled once.
Rather than recompiling the regular expression on each log message, we now compile it once, and apply many times. This should be a fair amount more efficient, even though it necessitates a strchr to look for %, and then conversion back to QString.
- Loading branch information
Showing
3 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters