View Single Post
Old 23rd September 2018, 23:29   #44  |  Link
zorr
Registered User
 
Join Date: Mar 2018
Posts: 447
I wanted to get rid of the polling so instead I tried waiting for the avsr process to finish until I start reading the output file. That works but is about 10% slower (when running a validation with a fast script) than the polling method.

Another thing I'm working on is improved error handling. The latest avsr will output the script error messages into standard error stream which I can read from the optimizer. However that same 10% penalty comes when I read avsr's output streams fully before I start checking the output file. That makes sense since reading the streams until nothing else is coming is pretty much the same thing as waiting for the process to finish. So what I'm going to try next is reading the streams while I'm polling the output file. In that way I can hopefully enable the improved error handling and keep the faster execution speed.

Apologies for the slow progress. I recently bought a house and now I have to plan the moving and renovations...

Last edited by zorr; 23rd September 2018 at 23:31. Reason: wrong word used
zorr is offline   Reply With Quote