Update the entire program to use QVector. This should make the performance better. Still trying to preallocate enough space for 10,000,000 frames which should be more than plenty.
This commit is contained in:
+1
-1
@@ -156,7 +156,7 @@ void CANFrameModel::clearFrames()
|
||||
//Is this safe? Maybe not but if we don't change it then that's OK
|
||||
//Is it the best C++ practice? Probably not. This breaks the MVC paradigm
|
||||
//but, it's for a good cause.
|
||||
QList<CANFrame>* CANFrameModel::getListReference()
|
||||
QVector<CANFrame>* CANFrameModel::getListReference()
|
||||
{
|
||||
return &frames;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user