enso/distribution/lib/Standard/Base
Jaroslav Tulach ecd1fdc3f8
Caching the grapheme_length of a Text (#3864)
Computing length of a text takes time. Let's cache it after first computation.

# Important Notes
Wrote `StringBenchmarks` that sums lengths of (the same) `Text` present many time in a `Vector`. Initially it took `383.673 ms` per operation. Then it took `0.031 ms/op`. Looks like the `length` calls are returning instantly as they get cached.
2022-11-14 15:53:10 +00:00
..
0.0.0-dev Caching the grapheme_length of a Text (#3864) 2022-11-14 15:53:10 +00:00