Parallel builds in 3.1 branch?

David S. Miller davem@redhat.com
Thu May 16 23:21:00 GMT 2002


 From: Mark Mitchell <mark@codesourcery.com>
 Date: 2002年5月16日 23:01:23 -0700
 
 2. For safety, the compiler now writes out "foo.tmp" and renames it
 to "foo.class", rather than creating "foo.class" directly. This
 means that per compiler invocation there is one more file system
 operation.
 
 I'd be surprised if this did anything like double the time, but
 you never know.
Under Solaris, in the default configuration, the process will block
until the inode updates for the move operation are written to disk.
Like I said, this could be the killer.
It might be faster to write mkstemp() then mv /tmp/$TMP_FILE foo.class
because that would use tmpfs under Solaris which is an in-memory
filesystem. But we have to also consider what this means for cygwin
and the like, and whether it would help there.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /