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

unorm an streaming #30

Open
jeromew opened this issue Sep 17, 2014 · 2 comments
Open

unorm an streaming #30

jeromew opened this issue Sep 17, 2014 · 2 comments
Labels

Comments

@jeromew
Copy link

jeromew commented Sep 17, 2014

Hello,

Have you considered bringing a streaming API to unorm ? do you think that it is technically feasible (is normalization only a 'local' operation where you only need to know a few characters before taking a decision ?) or do you stricly need the whole buffer string before starting to normalize ?

@phadej phadej added the idea label Sep 17, 2014
@phadej
Copy link
Collaborator

phadej commented Sep 17, 2014

It's technically possible, but that would require rewriting of the internals.

@jeromew
Copy link
Author

jeromew commented Sep 18, 2014

would it make sense to have a shared library between a streaming & non streaming library ?

I suspect that a lot of code could be shared (char detection, length, replacements, ..) but maybe if they are refactored into re-usable parts for a streaming solution it could lead to a performance hit on unorm.

is performance currently a critical goal of unorm ?

I am trying to see if a streaming-unorm should just take inspiration from unorm or rather spring from a unorm refactoring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants