Switch unicode-linebreak to xi-unicode for ~25% faster builds
This commit is contained in:
parent
ac83f5846b
commit
c1262eca74
2 changed files with 2 additions and 2 deletions
|
|
@ -243,7 +243,7 @@ impl<'a> FontMatches<'a> {
|
|||
let mut words = Vec::new();
|
||||
|
||||
let mut start_word = 0;
|
||||
for (end_lb, _) in unicode_linebreak::linebreaks(span) {
|
||||
for (end_lb, _) in xi_unicode::LineBreakIterator::new(span) {
|
||||
let mut start_lb = end_lb;
|
||||
for (i, c) in span[start_word..end_lb].char_indices() {
|
||||
if start_word + i == end_lb {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue