PATCH: Improve Java build times

Mark Mitchell mark@codesourcery.com
Mon May 20 20:14:00 GMT 2002


--On Tuesday, May 21, 2002 03:00:51 PM +1200 Bryce McKinlay 
<bryce@waitaki.otago.ac.nz> wrote:
> Mark Mitchell wrote:
>>> Now I hope I'll be forgiven for my earlier Makefile.am change which
>> was accused of making things slower. :-)
>> Yes. Mark, you are cool ;-)
>
Let's not get carried away.
> I havn't had a chance to test it yet, but I like the look of this patch.
> If I understand it correctly, by calling scandir() on each directory that
> class/java files are to be read from, and then searching the directory
> entries to determine existance of a file, you may actually have also
> solved the os X/cygwin case insensitive file system bug, or at least gone
> a long way towards it!

I don't know about that bug, but in general, yes, this is almost a
solution ton one problem I can imagine. You could do the comparisons
using strcasecmp instead of strcmp, and a case-ignoring hash function,
and then be case insensitive, so that you would find "fOo.JaVa" as
well as "foo.java" when looking for a class "foo".
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com


More information about the Java mailing list

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