Skip to content

Conversation

@ecederstrand
Copy link
Contributor

Refs #21

Allow skipping whitespace cleanup. Defaults to the existing behavior. The flag allows skipping whitespace filtering of the input stream for performance reasons.

This is a suggested fix to the first item in the referenced issue.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

EKC (Erik Cederstrand) added 2 commits October 25, 2018 20:01
Default to the existing behavior. The flag allows skipping whitespace filtering of the input stream.
@mattsb42-aws
Copy link
Member

Could you isolate the relevant commit in this PR? Looks like it currently includes the changes in #22 as well.

I don't think that making the whitespace removal optional is the right approach. I would rather we find a more efficient way of performing it if this is an issue. Have you seen a performance issue with the whitespace removal?

I'm wondering if just always passing through _read_additional_data_removing_whitespace might be the right approach rather than passing through all members of string.whitespace to check first.

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