Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not read ahead unnecessarily #304

Merged
merged 1 commit into from
Jan 5, 2018

Conversation

rogpeppe
Copy link
Contributor

@rogpeppe rogpeppe commented Jan 5, 2018

There's no need to read beyond the end of a document end
marker, but the code was doing that by relying on each
parser method to read the next token, even though it
didn't need it.

We change the parser methods to read tokens only when needed.

There's no need to read beyond the end of a document end
marker, but the code was doing that by relying on each
parser method to read the next token, even though it
didn't need it.

We change the parser methods to read tokens only when needed.
@rogpeppe rogpeppe merged commit 39e59aa into go-yaml:devel Jan 5, 2018
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.

1 participant