From a7bccb33b95699eb5c14b76e782da75e6d8c2738 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Thu, 20 Jun 2013 19:38:55 +0100 Subject: tools/trace: Defer blob hex-decoding. To speed up parsing. Reviewed-by: Brian Paul --- src/gallium/tools/trace/parse.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gallium/tools/trace/parse.py') 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') -- cgit v1.2.3