validate: launcher: Use cElementTree for XML parsing

Using cElementTree instead of ElementTree speeds up parsing of media
descriptor files.

The total time spent parsing XML files drops from ~0.64 s to ~0.24 s,
leading to faster initialisation times for gst-validate-launcher.

https://bugzilla.gnome.org/show_bug.cgi?id=743293
This commit is contained in:
Ramiro Polla 2015-01-21 13:13:02 +01:00 committed by Thibault Saunier
parent 08afce235c
commit 2d5ad1ac62

View file

@ -33,7 +33,7 @@ import reporters
import ConfigParser
import loggable
from loggable import Loggable
import xml.etree.ElementTree as ET
import xml.etree.cElementTree as ET
from utils import mkdir, Result, Colors, printc, DEFAULT_TIMEOUT, GST_SECOND, \
Protocols