I tried with and without xquery:fork-join and I do not see any real difference as far as evaluation time is concerned. When it works, time gets, approximately, halved. In my "activity monitor" I can actually see more R processes started by BaseX, but in the other case I cannot see any new process (but I guess this is expected for parallelization inside the BaseX process).
I guess that the process of writing files is pretty fast, so there may be no real threading. You can use prof:sleep do delay the process.
Universität Leipzig Institute of Computer Science, NLP Augustusplatz 10 04109 Leipzig Deutschland E-mail: celano@informatik.uni-leipzig.de E-mail: giuseppegacelano@gmail.com Web site 1: http://asv.informatik.uni-leipzig.de/en/staff/Giuseppe_Celano Web site 2: https://sites.google.com/site/giuseppegacelano/
On Jul 24, 2018, at 9:39 AM, Christian Grün christian.gruen@gmail.com wrote:
Thanks.
However, if I change the content of function() with only a file:write() function (see below), it does not seem to work in parallel
: do you know why?
How did you find out?