[all-commits] [llvm/llvm-project] 1df7f2: [flang][runtime] Tweak GetNextNonBlank() performan...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Oct 24 12:13:23 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1df7f2baa9a8f9fcec90de486686766cc2fd2bb1
      https://github.com/llvm/llvm-project/commit/1df7f2baa9a8f9fcec90de486686766cc2fd2bb1
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-10-24 (Fri, 24 Oct 2025)

  Changed paths:
    M flang-rt/include/flang-rt/runtime/connection.h
    M flang-rt/include/flang-rt/runtime/io-stmt.h

  Log Message:
  -----------
  [flang][runtime] Tweak GetNextNonBlank() performance (#164521)

When skipping blanks during input from an ASCII file, scan the buffered
characters directly when possible rather than using the more general
path. This adds complexity, but shaves a few percent off the runtime of
a code that reads in millions of list-directed integers (best time over
multiple runs goes from 17.56 to 16.84 sec).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list