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

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