[all-commits] [llvm/llvm-project] ef7f6f: [flang] Use faster path for default formatted char...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Mar 7 13:01:33 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef7f6f7cd7f7956c8bebaf8b29a9895ebbd35af2
      https://github.com/llvm/llvm-project/commit/ef7f6f7cd7f7956c8bebaf8b29a9895ebbd35af2
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-03-07 (Mon, 07 Mar 2022)

  Changed paths:
    M flang/runtime/edit-input.cpp
    M flang/runtime/io-stmt.cpp
    M flang/runtime/io-stmt.h
    M flang/runtime/unit.cpp

  Log Message:
  -----------
  [flang] Use faster path for default formatted character input

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

Differential Revision: https://reviews.llvm.org/D121144




More information about the All-commits mailing list