diff options
author | José Fonseca <[email protected]> | 2013-06-20 19:38:55 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2013-06-21 14:30:19 +0100 |
commit | a7bccb33b95699eb5c14b76e782da75e6d8c2738 (patch) | |
tree | 87340a9f9a468675339aeeeb2853ae3c7c081e8a /src/gallium/tools/trace/parse.py | |
parent | a8f7e12d92a8c3dab8ec2e821f51ed711849f1b5 (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-x | src/gallium/tools/trace/parse.py | 5 |
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') |