On Dec 17, 2007 5:53 AM, Alexander Skwar < [EMAIL PROTECTED]> wrote: > David Relson <[EMAIL PROTECTED]> wrote: > > > I > > suspect C++ runs somewhat faster, but that's not the issue here. > > Is that actually true (especially for the Portage case)? I'd > suspect that portage sometimes tends to be slow, because of > the myriad of files it has to deal with. So it's I/O which is > slow. > > Would that problem go away, if the "engine" would be rewritten > in C++? >
Its very easy to check if a program is CPU or IO bound. Just run top while the program is running. If the cpu usage (in userspace; not kernel) is 100%, the program is CPU bound and will benefit from using a compiled language. If not, then top should show a high IO-wait in which case using a good file system, faster disk or having a lot of free memory for disk caching helps. Ritesh