This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: Can cygwin boot faster?


Lenik wrote:

> Because of the slow speed, when I'm programming with cygwin, I will 
> carefully to invoke command calls to the cygwin executables, to reduce 
> the start up cost.

I've sometimes wondered if it would be worth it to have busybox ported
to Cygwin, just to cut out the forking cost for filesystem operations.

Right now, if I need to write a script that needs to perform mass
filesystem operations, I do all sorts of tricks to stream data into
temporary files, convert paths to Windows with `cygpath -w -f -`, then
`paste` and `sed` it into shape, before finally piping it off to
`cmd.exe` (or a batch file) for final execution, just to avoid this
forking cost.

On the other hand, it's nice, when performing large batch filesystem
operations, to output the commands to be executed as a script so that it
can be validated before letting it all happen.

-- Barry

-- 
http://barrkel.blogspot.com/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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