Skip to content

Commit

Permalink
Clarified some performance statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
rivo committed Jan 27, 2024
1 parent f302f7f commit 601bbb3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions grapheme.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 601bbb3

Please sign in to comment.