Would please someone do the following command on Linux and Cygwin?

time tools/incdir.sh -s arm-none-eabi-gcc /home/Schock/nuttx/nuttx/include

(Replace the path with your NuttX path.)

For MSYS2 it's in the range of:

real    0m0,189s
user    0m0,061s
sys     0m0,045s

I don't have the Linux box on now, but here are the results on Cygwin (32Gb Rizen 5 3600, NVMe):

First time:

   $ time tools/incdir.sh -s arm-none-eabi-gcc
   /home/Schock/nuttx/nuttx/include
   -isystem "/home/Schock/nuttx/nuttx/include"

   real    0m0.198s
   user    0m0.000s
   sys     0m0.092s

Thereafter:

   real    0m0.094s
   user    0m0.000s
   sys     0m0.075s

After incdir.sh has been included in the in-memory cache, it is pretty fast.  But it can never be super fast.  Both Cygwin and MSYS2 suffer from the well documented fork problem: https://superuser.com/questions/133313/can-i-speed-up-cygwins-fork .  So that is what causes the ports of GNU tools to be so slow in Cygwin.  Anti-virus run time checking is a big factor too.


Reply via email to