Repository navigation
Unicode normalization combinators - #698
Merged
Merged
Conversation
Member
Author
|
Ignore |
Member
|
@adithyaov can you rebase this, port it on the new unicode-data package, and add benchmarks from unicode-transforms package? |
adithyaov
force-pushed
the
unicode-normalize
branch
6 times, most recently
from
August 4, 2021 14:12
0a6debe to
fa8f961
Compare
harendra-kumar
requested changes
Aug 4, 2021
harendra-kumar
left a comment
Member
There was a problem hiding this comment.
- Let's add the normalization routines to the Unicode.Char module. We will use this module for operations on Char type including stream of Char to Char transformations. The Unicode.Stream module should go away. We will move the encode/decode routines in Unicode.Stream to Unicode.Utf8 and Unicode.Latin1.
- Let's add some basic benchmarks as well so that we can start working on performance optimizations of these modules. Just take an input file and normalize it. We already have some benchmarks in the existing Unicode.Stream benchmarks that take input files using env vars.
Once the normalization tests pass and we have benchmarks in place, we can commit this and do the performance optimizations later.
| -- decomposed. | ||
| {-# INLINE_EARLY partialComposeD #-} | ||
| partialComposeD :: Monad m => Stream m Char -> Stream m Char | ||
| partialComposeD (Stream step state) = Stream step' (ComposeNone state) |
Member
Author
There was a problem hiding this comment.
This is kind of partially composing. This does not compose a semi-decomposed stream. It shouldn't be used directly.
adithyaov
force-pushed
the
unicode-normalize
branch
2 times, most recently
from
August 6, 2021 13:08
7424d87 to
131eff1
Compare
harendra-kumar
approved these changes
Aug 6, 2021
harendra-kumar
left a comment
Member
There was a problem hiding this comment.
Looks good at a high level. I did not check the details.
adithyaov
force-pushed
the
unicode-normalize
branch
from
August 8, 2021 01:07
131eff1 to
5061dd1
Compare
adithyaov
force-pushed
the
unicode-normalize
branch
from
August 8, 2021 01:08
5061dd1 to
2a638b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Todo: