Skip to content

Conversation

@klausler
Copy link
Contributor

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

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).
@klausler klausler requested a review from vzakhari October 21, 2025 23:39
Copy link
Contributor

@vzakhari vzakhari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@klausler klausler merged commit 1df7f2b into llvm:main Oct 24, 2025
11 checks passed
@klausler klausler deleted the bug1248 branch October 24, 2025 19:13
dvbuka pushed a commit to dvbuka/llvm-project that referenced this pull request Oct 27, 2025
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).
Lukacma pushed a commit to Lukacma/llvm-project that referenced this pull request Oct 29, 2025
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).
aokblast pushed a commit to aokblast/llvm-project that referenced this pull request Oct 30, 2025
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants