[patch, fortran] Trim spaces on list-directed reads
Jerry DeLisle
jvdelisle@charter.net
Sat Apr 14 20:37:00 GMT 2012
On 04/10/2012 08:32 AM, Thomas Koenig wrote:
> Hello world,
>
> this patch effectively trims the spaces from the string on
> list-directed reads. This avoids the large overhead on
> processing these spaces when reading from long lines.
>
> I didn't do this for internal units which are arrays because
> this would need a separate calculation for each record, and
> would mean a major change to the way the code is structured.
>
> The running time for the test case from PR 50673 is reduced
> from ~8 s to 0.1 s by this patch.
>
> Regression-tested. OK for trunk?
>
yes, very good, OK for trunk.
Sorry for delay, time is squeezed badly here.
Regards,
Jerry
More information about the Gcc-patches
mailing list