[fpc-pascal] Why external execution so slow?

Marco van de Voort fpc at pascalprogramming.org
Wed Apr 1 10:52:59 CEST 2020


Op 2020-03-31 om 19:37 schreef Gabor Boros:
>
> I need to execute an external program from my application. This 
> execution is much slower than execute the external application from 
> command line. I made a simple example (see below) which show 1.7 seconds
> for me. Why? (From command line the execution time is 15 milliseconds. 
> I used Windows 10 64bit.)
>
I'll have a look in the weekend. Maybe the timeout for the waiting on 
also stderr causes this. The runcommand code originally was based on the 
large output code.


More information about the fpc-pascal mailing list