Debugger: Speed up display of large static arrays with simple data

This addresses QTCREATORBUG-15426 for the case of well-known simple
types (int, float, ...). Retrieving 1 mio ints takes now ~15s instead
of ~140s.

Task-number: QTCREATORBUG-15426
Change-Id: Ifb7c957d60504e23147d499d8bb9bbd41c5a53ba
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-12-10 11:36:44 +01:00
parent 3baf28e48c
commit d01a5ff2aa

View File

@@ -1027,9 +1027,7 @@ class DumperBase:
self.putNumChild(n) self.putNumChild(n)
if self.isExpanded(): if self.isExpanded():
with Children(self): self.putArrayData(p, n, innerType)
for i in range(n):
self.putSubItem(i, value[i])
self.putPlotDataHelper(p, n, innerType) self.putPlotDataHelper(p, n, innerType)