Closed felipeZ closed 6 years ago
The messages that you are showing are PLAMS messages. Can you see in the profiler which '_thread.lock' instances are eating most of the time? Noodles uses locks when writing to the cache (through TinyDB), if there is a lot of data there that could be a bottle-neck. Edit: but four seconds is way too long for that.
According to cProfile the function that is consuming most of the time is thread_pool that calls the wait method from the condition class, which is the responsible for most of the time consumption.
I have noticed that external tasks invoked with
subprocess
have a significant delay between the time they are scheduled by noodles and the time that they start to run.Noodles
is reporting something similar to the followingIt seems that the jobs are scheduled inmediatly, But when I measure the time spent inside the functions and the time reported by the external process, I get the following times ( in seconds)
It seems that the jobs are not scheduled immediately one after the other and that there is some delay. I run
cProfile
but it only shows the evident, that most of the time the threads are lock waiting for the external packages to finish.The result provided by
cProfile
isAny suggestion about what is causing the delay?