I am having an issue with the time that it takes to carry out my parfor loop. There are no MATLAB errors, but after running PROFILER I seem to have found the source of the issue. 805 out of 807 seconds total were spent on the following line of code:
r = q.poll(1, java.util.concurrent.TimeUnit.SECONDS);
This is found within:
function [tags, results] = getCompleteIntervals(obj, numIntervals)
Which is called within:
java.util.concurrent.LinkedBlockingQueue (Java-method)
according to PROFILER at least. This is all part of the parallel programming method as far as I can make out. I can find the 'poll' function within C: (Windows) and have opened it to have a look, but I don't really understand what it does or how to stop it taking up so much of my time!
Best Answer