summaryrefslogtreecommitdiff
path: root/GstDebugViewer
diff options
context:
space:
mode:
authorRené Stadler <mail@renestadler.de>2012-09-23 16:43:25 +0200
committerRené Stadler <mail@renestadler.de>2012-09-24 02:44:07 +0200
commit46f355b7def79b75db4e0f51001b41bd268b1993 (patch)
tree750cab84d53a812b9d972c8540733373690fd7a1 /GstDebugViewer
parent670f0f68d027a15f642f9308a40c82fa27fc632a (diff)
models: store line offsets in arrays
Diffstat (limited to 'GstDebugViewer')
-rw-r--r--GstDebugViewer/GUI/models.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/GstDebugViewer/GUI/models.py b/GstDebugViewer/GUI/models.py
index 8013195..3d8a0bb 100644
--- a/GstDebugViewer/GUI/models.py
+++ b/GstDebugViewer/GUI/models.py
@@ -19,6 +19,7 @@
"""GStreamer Debug Viewer GUI module."""
+from array import array
from bisect import bisect_left
import logging
@@ -48,7 +49,7 @@ class LogModelBase (gtk.GenericTreeModel):
##self.props.leak_references = False
- self.line_offsets = []
+ self.line_offsets = array ("I")
self.line_levels = [] # FIXME: Not so nice!
self.line_cache = {}
@@ -266,11 +267,9 @@ class FilteredLogModel (FilteredLogModelBase):
YIELD_LIMIT = 10000
self.logger.debug ("preparing new filter")
- ## del self.line_offsets[:]
- ## del self.line_levels[:]
- new_line_offsets = []
+ new_line_offsets = array ("I")
new_line_levels = []
- new_super_index = []
+ new_super_index = array ("I")
level_id = self.COL_LEVEL
func = filter.filter_func
def enum ():