This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Time and motion studies of gcc and egcs and LCC



I said:
>... but for a long running
> program such as bash or gcc, the load-time overhead is proportionally small.
> 

Sergey Okhapkin replied:
]When configure script is running, load-time Dll linkage takes about 70% of
]total execution time :-(

Oops, yes, I guess bash isn't necessarily a long running program.  Shell
scripts do tend to assume that process creation is relatively low overhead.
It is on Unix.  I guess that loading in bash and all the DLLs that it
references (actually, the closure set of referenced DLLs) just to perform
some small function may be a significant fraction of the time.  So, if it
takes 70mS to load and 30mS to run, it does get to be significant.  Especially
if you repeat this 1000 times.  If, instead, it was 70mS to load and 30,000mS
to run, then the load time would be insignificant.

Even on Unix with a less expensive fork(), running a shell script is much
less efficient than a C program that does the same thing, in part due to
the repeated costs of process creation.

marcus hall
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]