------- Comment #10 from jvdelisle at gcc dot gnu dot org 2010-02-21 15:59 ------- An update. I have a patch developing. Conceptually, it requires handling of separators in list_read.c to be moved to the beginning of each invocation of list_formatted_read_scalar. This avoids trying to eat_spaces or separators after a value is read. This change is actually the right thing to do since it takes code scattered in several places and consolidates it to one place.
The result is execution time on the original testcase is reduced to less then .2 seconds. I don't expect significant performance gains in general, though the code should be more maintainable The patch is a bit intrusive, especially in namelist areas, so may be best for 4.6 at this stage. (assuming I get it to work completely at all :) ) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38199