EDA/gui; extras/gui/genericEditor: Performance improvements
authorJerome St-Louis <jerome@ecere.com>
Wed, 9 Dec 2015 23:25:41 +0000 (18:25 -0500)
committerJerome St-Louis <jerome@ecere.com>
Tue, 22 Dec 2015 06:45:10 +0000 (01:45 -0500)
eda/drivers/sqlite/EDASQLite.ec
eda/libeda/src/gui.ec
extras/gui/genericEditor.ec

index f8a0f71..a6b6fd0 100644 (file)
@@ -1830,6 +1830,7 @@ class SQLiteRow : DriverRow
       if(updateStatement)
          sqlite3_finalize(updateStatement);
       sprintf(command, "UPDATE `%s` SET `%s` = ? WHERE ROWID = ?;", tbl.name, sqlFld.name);
+      // TODO: Shouldn't we cache those update statements per field?
       result = sqlite3_prepare_v2(tbl.db.db, command, -1, &updateStatement, null);
       sqlite3_bind_int64(updateStatement, 2, (sqlite3_int64)rowID);
       BindData(updateStatement, 1, (SQLiteField)fld, data, null);
index d3bc43f..ab52eba 100644 (file)
@@ -366,6 +366,9 @@ public class FieldDataBox : DataBox
    anchor = { left = 110, right = shadowS + sgs * 2 };
    borderStyle = deep;
 
+   // TOCHECK: Testing this for GenericEditor performance issue?
+   keepEditor = true;
+
 public:
    property Row row
    {
index b631c9b..a67aa71 100644 (file)
@@ -5,6 +5,7 @@ class GenericEditor : Window
    text = " ";
    tabCycle = true;
    size = { 800, 600 };
+   fullRender = true;
 
    Array<FieldDataBox> dataBoxes { };
    Array<Label> labels { };