Old implementation of MemTable loadTable() is not correct:
- If memtable is backed by m_data, the table is not refreshed.
- If memtable is not backed by m_data, table refreshed by real data are not updated.
I reimplemented MemTable's loadTable() to make it efficiently work. Only cells that changed are refresh/updated.
toIntVector() return a QVector. Since QVector uses implicit data sharing, copy a QVector is not an heavy operation. (see https://doc.qt.io/qt-5/implicit-sharing.html)
- If memtable is backed by m_data, the table is not refreshed.
- If memtable is not backed by m_data, table refreshed by real data are not updated.
I reimplemented MemTable's loadTable() to make it efficiently work. Only cells that changed are refresh/updated.
toIntVector() return a QVector. Since QVector uses implicit data sharing, copy a QVector is not an heavy operation. (see https://doc.qt.io/qt-5/implicit-sharing.html)
- Attachments
- memtable.zip
- You don't have permission to download attachments.
- (2 Kb) Downloaded 1 times