anv: use cElementTree in anv_entrypoints_gen.py
authorDylan Baker <dylan@pnwbakers.com>
Tue, 21 Feb 2017 19:21:24 +0000 (11:21 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 22 Mar 2017 23:22:00 +0000 (16:22 -0700)
It's written in C rather than pure python and is strictly faster, the
only reason not to use it that it's classes cannot be subclassed.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
src/intel/vulkan/anv_entrypoints_gen.py

index 2c0c968222e5e7a51a20c73f26c787f44b37107e..a08cfced6ae961169b5a8751387f1570f2b6eda8 100644 (file)
@@ -26,7 +26,7 @@ import argparse
 import functools
 import os
 import textwrap
-import xml.etree.ElementTree as et
+import xml.etree.cElementTree as et
 
 from mako.template import Template