This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Patch: optimized copy_string
Erik Schnetter wrote:
On Dec 10, 2005, at 17:43:31, Jack Howarth wrote:
Erik,
I tested the change you proposed early to remove the extra memmove
from
the copy_string routine in libgfortran.
[schnipp]
...as displayed in Shark. I found that with the patch applied the
NIST testsuite
passes as expected and the gfortran testsuite results are unchanged.
The assembler code is almost identical. I don't think that my patch
would improve anything. I expect your timing numbers say the same?
-erik
I am about to submit a patch that may affect things. I found that for internal
unit IO, every string was being "emptied" (filled with spaces) before any WRITE
operations to it. This meant that for internal units, the string is effectively
being written twice. I do not know if xplor-nih uses a lot of internal units,
aka WRITE to scaler character variables.
Just curious.
Jerry