This is an archive of the discontinued LLVM Phabricator instance.

[flang] Use faster path for default formatted character input
ClosedPublic

Authored by klausler on Mar 7 2022, 11:44 AM.

Details

Summary

Rather than reading default character variables in formatted
input one byte at a time via NextInField(), skip and read
them via blocks of available buffer data. This eliminates
a bottleneck that affected reads of large character values.
(It also exposed a problem with sequential reads with RECL=
set on the OPEN statement, so that's fixed too.)

Diff Detail

Event Timeline

klausler created this revision.Mar 7 2022, 11:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 7 2022, 11:44 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Mar 7 2022, 11:44 AM
vdonaldson accepted this revision.Mar 7 2022, 11:48 AM
This revision is now accepted and ready to land.Mar 7 2022, 11:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 7 2022, 1:01 PM