[Patch, fortran, RFC] PR 40958 Reduce size of module files

Thomas Koenig tkoenig@netcologne.de
Sun Nov 27 00:34:00 GMT 2011


Am 26.11.2011 23:33, schrieb Janne Blomqvist:
> PS: Heck, what about a simple and stupid approach for #1: Just read
> the mod file into a big string, and then do the parsing from there?

Looking at the code in module.c for the first time, it strikes me how
inefficient it is.

Here is a first attempt at getting away from some of the lseek calls.
There are still a few more, but it is too late for that now :-)

Would anybody care to test/comment?

	Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p2.diff
Type: text/x-patch
Size: 2138 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111127/1adf3c5a/attachment.bin>


More information about the Fortran mailing list