You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BreakIterator.GetBoundaries is exponentially slow depending on the size of the source text. In other words, the larger the size of the text parameter string is, the slower the function is, and the curve is not linear.
To Reproduce
string content = "... some large text, about 100KB ... ";
BreakIterator.GetBoundaries(BreakIterator.UBreakIteratorType.WORD, new Locale("eng"), content, false); // Takes about 10 secs.
Expected behavior
The BreakIterator.GetBoundaries to finish within milliseconds.
Environment
OS: Windows 10
Exact version of icu.net 2.6.0
.NET Framework 4.7
The text was updated successfully, but these errors were encountered:
atlastodor
added a commit
to atlastodor/icu-dotnet
that referenced
this issue
Mar 31, 2020
Describe the bug
BreakIterator.GetBoundaries is exponentially slow depending on the size of the source text. In other words, the larger the size of the text parameter string is, the slower the function is, and the curve is not linear.
To Reproduce
string content = "... some large text, about 100KB ... ";
BreakIterator.GetBoundaries(BreakIterator.UBreakIteratorType.WORD, new Locale("eng"), content, false); // Takes about 10 secs.
Expected behavior
The BreakIterator.GetBoundaries to finish within milliseconds.
Environment
The text was updated successfully, but these errors were encountered: