Various general optimizations, inlined a bunch of functions, did a bunch of optimizations in UICodeEditor::drawMinimap, render times are about +10% faster for some common ecode escenarios.

This commit is contained in:
Martín Lucas Golini
2026-08-31 19:21:25 -03:00
parent 36200430aa
commit 6e467dbb59
18 changed files with 128 additions and 140 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ static constexpr const char* GIT_STASH_TOOLTIP_CLASS = "git-stash-tooltip";
class GitPlugin : public PluginBase {
public:
static PluginDefinition Definition() {
return { "git", "Git", "Git integration", GitPlugin::New, { 0, 1, 5 }, GitPlugin::NewSync };
return { "git", "Git", "Git integration", GitPlugin::New, { 0, 2, 0 }, GitPlugin::NewSync };
}
static Plugin* New( PluginManager* pluginManager );
+4 -4
View File
@@ -235,7 +235,7 @@ void ConsoleCommands::cmdImgResize( const std::vector<String>& params ) {
myPath = params[3].toUtf8();
if ( params.size() > 4 ) {
saveType = Image::extensionToSaveType( params[4] );
saveType = Image::extensionToSaveType( params[4].toUtf8() );
}
if ( params.size() > 5 ) {
@@ -274,7 +274,7 @@ void ConsoleCommands::cmdImgThumbnail( const std::vector<String>& params ) {
myPath = params[3].toUtf8();
if ( params.size() > 4 ) {
saveType = Image::extensionToSaveType( params[4] );
saveType = Image::extensionToSaveType( params[4].toUtf8() );
}
} else {
myPath = mApp->getFilePath();
@@ -306,7 +306,7 @@ void ConsoleCommands::cmdImgCenterCrop( const std::vector<String>& params ) {
myPath = params[3].toUtf8();
if ( params.size() > 4 ) {
saveType = Image::extensionToSaveType( params[4] );
saveType = Image::extensionToSaveType( params[4].toUtf8() );
}
} else {
myPath = mApp->getFilePath();
@@ -336,7 +336,7 @@ void ConsoleCommands::cmdImgScale( const std::vector<String>& params ) {
myPath = params[2].toUtf8();
if ( params.size() > 3 ) {
saveType = Image::extensionToSaveType( params[3] );
saveType = Image::extensionToSaveType( params[3].toUtf8() );
}
if ( params.size() > 4 ) {