On 7/18/05, John J. Foster <[EMAIL PROTECTED]> wrote:
> A few weeks ago I read in one of the newgroups a way to greatly decrease
> compilation times. The author noted that this was particularly noticable
> when working with something like OO. The general jist of it was to
> create temporary file system in memory and mount your portage tmpdir
> there. For the life of me, I can't find that thread anymore. Does anyone
> do something similar to this? Are there noticable gains to be had. I
> have an Athlon 2800XP and 1 GB ram.

I am not sure if this will give a tremendous speedup. Granted, the
source files won't need to be read from disk, which is an advantage,
however, the file reading time should be very small compared to the
time it takes for the compiler to translate the source code into
machine code.
Also, there's the ammount of memory you will lose, memory that could
be used by the compiler. In some cases, gcc can eat very big chunks of
memory.
And if you use -pipe in your cflags, the gcc output isn't really
written to disk during the various stages of compilation. Instead,
it's piped through the processes.
Well... maybe someone will give you some accurate results.
Just my 2c.

-- 
Bruno Lustosa, aka Lofofora          | Email: [EMAIL PROTECTED]
Network Administrator/Web Programmer | ICQ: 1406477
Rio de Janeiro - Brazil              |

-- 
gentoo-user@gentoo.org mailing list

Reply via email to