Changes between Version 1 and Version 6 of Ticket #18947


Ignore:
Timestamp:
Jul 16, 2024, 1:28:20 PM (4 months ago)
Author:
X512
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18947

    • Property Component System/KernelSystem
  • Ticket #18947 – Description

    v1 v6  
    22
    33Shell (Bash/Zsh etc.) execution time is very slow compared Linux/*BSD that significantly slow down Autotools based projects compilation and other tasks that heavily use shell scripts. Raw exec syscall is significantly faster (30x). I am not sure is it kernel, libroot or shell port problem, it need more investigation.
     4
     5UPDATE: problem is related to POSIX locale support. Setting `LC_ALL=C` significantly speed up shell execution.
    46
    57`loop.sh`:
     
    5557sys     0m0.240s
    5658}}}
     59
     60`export LC_ALL=C`
     61`time ./loop.sh 1000`:
     62{{{
     63real    0m1.470s
     64user    0m0.878s
     65sys     0m0.546s
     66}}}