summaryrefslogtreecommitdiff
path: root/tools/HPMHookGen/HPMHookGen.pl
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-02-03 18:27:19 +0100
committerHaru <haru@dotalux.com>2014-02-03 18:27:19 +0100
commit35e1b99c2d1ecab5fa67b2033c87a90512b5d9aa (patch)
treed4c6744cdd5c79d79a3b14765f289c8d2a58fb10 /tools/HPMHookGen/HPMHookGen.pl
parent42b5c048e3d97be93c71f81f84ff37c502f96163 (diff)
downloadhercules-35e1b99c2d1ecab5fa67b2033c87a90512b5d9aa.tar.gz
hercules-35e1b99c2d1ecab5fa67b2033c87a90512b5d9aa.tar.bz2
hercules-35e1b99c2d1ecab5fa67b2033c87a90512b5d9aa.tar.xz
hercules-35e1b99c2d1ecab5fa67b2033c87a90512b5d9aa.zip
Updated HPMHookGen with a HPMDataCheck generator
- It will be used by an upcoming commit by Ind. - Added dummy HPMDataCheck.h, to test the API bot's capability to re-generate it. - Improved XML parser performance. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'tools/HPMHookGen/HPMHookGen.pl')
-rwxr-xr-xtools/HPMHookGen/HPMHookGen.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl
index eef490e29..b035687e2 100755
--- a/tools/HPMHookGen/HPMHookGen.pl
+++ b/tools/HPMHookGen/HPMHookGen.pl
@@ -7,6 +7,12 @@ use strict;
use warnings;
use XML::Simple;
+# XML Parser hint (some are faster than others)
+#local $ENV{XML_SIMPLE_PREFERRED_PARSER} = ''; # 0m7.138s
+local $ENV{XML_SIMPLE_PREFERRED_PARSER} = 'XML::Parser'; # 0m2.674s
+#local $ENV{XML_SIMPLE_PREFERRED_PARSER} = 'XML::SAX::Expat'; # 0m7.026s
+#local $ENV{XML_SIMPLE_PREFERRED_PARSER} = 'XML::LibXML::SAX'; # 0m4.152s
+
sub trim($) {
my $s = $_[0];
$s =~ s/^\s+//; $s =~ s/\s+$//;