This is an archive of the discontinued LLVM Phabricator instance.

[flang] runtime perf: larger I/O buffer growth increments
ClosedPublic

Authored by klausler on Jan 31 2022, 1:33 PM.

Details

Summary

When reallocating an I/O buffer to accommodate a large record,
ensure that the amount of growth is at least as large as the
minimum initial record size (64KiB). The previous policy was
causing input buffer reallocation for each byte after the minimum
buffer size when scanning input data for record termination
newlines.

Diff Detail

Event Timeline

klausler created this revision.Jan 31 2022, 1:33 PM
klausler requested review of this revision.Jan 31 2022, 1:33 PM
vdonaldson accepted this revision.Jan 31 2022, 1:44 PM
This revision is now accepted and ready to land.Jan 31 2022, 1:44 PM
This revision was landed with ongoing or failed builds.Jan 31 2022, 2:53 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 31 2022, 2:53 PM