summaryrefslogtreecommitdiffstats
path: root/src/gallium/tools/trace/parse.py
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2013-06-20 19:38:55 +0100
committerJosé Fonseca <[email protected]>2013-06-21 14:30:19 +0100
commita7bccb33b95699eb5c14b76e782da75e6d8c2738 (patch)
tree87340a9f9a468675339aeeeb2853ae3c7c081e8a /src/gallium/tools/trace/parse.py
parenta8f7e12d92a8c3dab8ec2e821f51ed711849f1b5 (diff)
tools/trace: Defer blob hex-decoding.
To speed up parsing. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/tools/trace/parse.py')
-rwxr-xr-xsrc/gallium/tools/trace/parse.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/tools/trace/parse.py b/src/gallium/tools/trace/parse.py
index 07f2d6c7659..d8dce2628ab 100755
--- a/src/gallium/tools/trace/parse.py
+++ b/src/gallium/tools/trace/parse.py
@@ -29,7 +29,6 @@
import sys
import xml.parsers.expat
-import binascii
import optparse
from model import *
@@ -305,9 +304,9 @@ class TraceParser(XmlParser):
def parse_bytes(self):
self.element_start('bytes')
- value = binascii.a2b_hex(self.character_data())
+ value = self.character_data()
self.element_end('bytes')
- return Literal(value)
+ return Blob(value)
def parse_array(self):
self.element_start('array')