# std: Make utf8CountCodepoints much faster · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/53c1624074f55973b8d6c160ba0d55b2a5ca09ad)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 53c1624074f55973b8d6c160ba0d55b2a5ca09ad

Requested commit: 53c1624074f55973b8d6c160ba0d55b2a5ca09ad

Commit: 53c1624074f55973b8d6c160ba0d55b2a5ca09ad

Tree: 93d2d267ba779a1641a45115a14c398a000f9db8

Author: LemonBoy

Committer: LemonBoy

## Message

```
std: Make utf8CountCodepoints much faster

Make the code easier for the optimizer to work with and introduce a fast
path for ASCII sequences.

Introduce a benchmark harness to start tracking the performance of ops
on utf8.

```

## Parents

- [3a1f515e09902eeaafce0d1cd03c8472af6eacd0](https://git.cafe/gitcafe/zig/commit/3a1f515e09902eeaafce0d1cd03c8472af6eacd0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/53c1624074f55973b8d6c160ba0d55b2a5ca09ad?format=markdown)
