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

Version 1.0.0 #5

Merged
merged 69 commits into from
Apr 19, 2019
Merged

Version 1.0.0 #5

merged 69 commits into from
Apr 19, 2019

Conversation

calebkleveter
Copy link
Contributor

Adds support for streaming data and cleans up the API.

var parser = Parser(onHeader: nil, onCell: { header, cell in 
    print(String(decoding: header, as: UTF8.self) + ":", String(decoding: cell, as: UTF8.self))
})
chunks.forEach { chunk in
    parser.parse(chunk)
}

This gives the advantage of handling streamed data over the previous parser implementation
This type is actually just a sync front-end, backed by the async decoder
Making it a class made the SyncParser unbearably slow
…ble propertys

This gives ~94% speed improvment
@calebkleveter calebkleveter added the enhancement New feature or request label Apr 19, 2019
@calebkleveter calebkleveter self-assigned this Apr 19, 2019
@calebkleveter calebkleveter merged commit caad986 into master Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant