[flang-commits] [PATCH] D121144: [flang] Use faster path for default formatted character input

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Mar 7 11:44:32 PST 2022


klausler created this revision.
klausler added a reviewer: vdonaldson.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

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.)


https://reviews.llvm.org/D121144

Files:
  flang/runtime/edit-input.cpp
  flang/runtime/io-stmt.cpp
  flang/runtime/io-stmt.h
  flang/runtime/unit.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121144.413575.patch
Type: text/x-patch
Size: 4967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220307/5dc059b9/attachment.bin>


More information about the flang-commits mailing list