[gfortran] patch for pr 21130 - 38822 lines of Fortran 90 takes more than 10 minutes to compile on a dual 3GHz P4 Linux box with lots of RAM
Bud Davis
bdavis9659@sbcglobal.net
Wed Mar 29 01:40:00 GMT 2006
problem was the recursive routine was being called on
the whole tree for every UNUSED symbol in the tree.
when you get a lot of code (like the submitters
example), it takes a long time.
changed the recursive routine to keep track of how
many symbols that it dealt with, thus it knows that
the tree needs to be traversed at least one more time.
tested on i686 / gnu / linux with no new regressions
in the testsuite.
submitters example code compiles in ~45 seconds
(ArrayTest_ArrayOps_Impl.f90) vs. the ~ 8 minutes
time before .
no testsuite file provided; this is a performance, not
a correctness problem.
--bud
2006-03-28 Bud Davis <bdavis9659@sbcglobal.net>
More information about the Fortran
mailing list