Re: [basex-talk] Reading JSON

2017-08-18 Thread Christian Grün
Hi Giuseppe, as you indicated in your last e-mail (in private), it was the debugging output that slowed down the execution of the unparse-text(...) function (the full text strings was added to both the query optimization info and the query plan). I have introduced a size limit [1]. Thanks for

Re: [basex-talk] Reading JSON

2017-08-15 Thread Christian Grün
Hi Giuseppe, please note that the evaluation times that are displayed in the GUI are not too reommendable for serious performance tests. There are various side effects that influence the result times of single query executions. However, you can enter the "SET RUNS ..." command in the command

Re: [basex-talk] Reading JSON

2017-08-15 Thread Giuseppe Celano
Hi Christian, I confirm that the command you use always outputs very similar time results, even when you manually repeat it for 3 or 4 times, i.e., running it without using "-r". However, if you run (manually) for a few times each of the queries from the GUI, I get differences (total time from

Re: [basex-talk] Reading JSON

2017-08-14 Thread Christian Grün
Hi Giuseppe, I did some tests on command-line: basex -v -z -r100 "parse-json(unparsed-text('example.json'))" basex -v -z -r100 "parse-json(file:read-text('example.json'))" basex -v -z -r100 "json-doc('example.json')" I tested the calls with a small and a large file (10 KB, 1.5 MB), and

Re: [basex-talk] Reading JSON

2017-08-14 Thread Giuseppe Celano
Hi Christian, The latter option. I just opened a file and run the same query repeatedly. It is not an in-depth comparison at all, but the times shown in the Query Info were clearly different (even if just ms). Best, Giuseppe Universität Leipzig Institute of Computer Science, Digital

Re: [basex-talk] Reading JSON

2017-08-14 Thread Christian Grün
Hi Giuseppe, The semantics of the used functions are slightly different, but I guess the differences in terms of performance should be rather marginal. Just in case: Have you have done some in-depth comparisons that I could have a look at? Did you work with large input files, or did you run the

[basex-talk] Reading JSON

2017-08-14 Thread Giuseppe Celano
Hi, I have noticed different speeds when running the following functions (from slowest to fastest): parse-json(unparsed-text('example.txt')) json-doc("example.txt") parse-json(file:read-text('example.txt')) similarly for documents on the web: parse-doc('http://example.com/text')