This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, fortran] Trim spaces on list-directed reads


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]