[flang-commits] [PATCH] D118649: [flang] runtime perf: larger I/O buffer growth increments

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Jan 31 14:53:39 PST 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG702c0cfa0759: [flang] runtime perf: larger I/O buffer growth increments (authored by klausler).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118649/new/

https://reviews.llvm.org/D118649

Files:
  flang/runtime/buffer.h


Index: flang/runtime/buffer.h
===================================================================
--- flang/runtime/buffer.h
+++ flang/runtime/buffer.h
@@ -135,7 +135,7 @@
     if (bytes > size_) {
       char *old{buffer_};
       auto oldSize{size_};
-      size_ = std::max<std::int64_t>(bytes, minBuffer);
+      size_ = std::max<std::int64_t>(bytes, size_ + minBuffer);
       buffer_ =
           reinterpret_cast<char *>(AllocateMemoryOrCrash(terminator, size_));
       auto chunk{std::min<std::int64_t>(length_, oldSize - start_)};


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118649.404744.patch
Type: text/x-patch
Size: 541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220131/c4b50504/attachment.bin>


More information about the flang-commits mailing list