From 601bbb3750c2ab13fb449eaf6f97cab4036b5043 Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Sat, 27 Jan 2024 23:29:46 +0100 Subject: [PATCH] Clarified some performance statements. --- grapheme.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/grapheme.go b/grapheme.go index a0bcc55..a1f3f0b 100644 --- a/grapheme.go +++ b/grapheme.go @@ -13,9 +13,10 @@ import "unicode/utf8" // well as boundary information and character width is available via the various // methods (see examples below). // -// Using this class to iterate over a string is convenient but it is much slower -// than using this package's [Step] or [StepString] functions or any of the -// other specialized functions starting with "First". +// This class basically wraps the [StepString] parser and provides a convenient +// interface to it. If you are only interested in some parts of this package's +// functionality, using the specialized functions starting with "First" is +// almost always faster. type Graphemes struct { // The original string. original string