From 40ea86547b852295b6d7a55c1fd3cc4fcaa4f228 Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 28 Jan 2009 04:05:17 +0000 Subject: [PATCH] . git-svn-id: svn+ssh://idea.nguyen.vg/svn/sxsi/trunk/xpathcomp@85 3cdefd35-fc62-479d-8e8d-bae585ffb9ca --- HACKING | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 HACKING diff --git a/HACKING b/HACKING new file mode 100644 index 0000000..92af1c6 --- /dev/null +++ b/HACKING @@ -0,0 +1,46 @@ +Compilation instruction: + +compile the TextCollection : + +cd XMLTree/TextCollection +make + +compile libcds : + +cd XMLTree/libcds +make + +compile XMLTree : +cd XMLTree +make + +compile xpathcomp/ +make + +you can compile with make DEBUG=true to get more statistics the overall programm is slower +but you get precise timing for each individual function calls to the XMLTree interface. + + +Usage : +./main 'file.xml' 'query' [output] + +file.xml is the input file. There are some in the tests subdirectory. At the moment you can mainly test +with base.xml and tiny.xml. Any file bigger than this will take too much time to load. + + +output is optional. If specified, it is the name of a file to which the result of the query is serialized. +If output is not given, the the result of the query is kept as a set of identifier and no access to +the string collection is made. + + +There are a few flags: + +-f sample factor [default=64] +-i index empty texts [default=false] +-d Disable text collection[default=false] +-help Display this list of options +--help Display this list of options + + +for instance: +./main -f 29 -d tests/tiny.xml '//para' -- 2.17.1