Skip to content

Commit

Permalink
refactor(tokenizer): Iterate over char codes (#894)
Browse files Browse the repository at this point in the history
This leads to a ~43% speed up in tokenizing performance 🤯

```
Old Tokenizer x 29,499 ops/sec ±0.20% (93 runs sampled)
Tokenizer x 42,260 ops/sec ±3.00% (92 runs sampled)
```
  • Loading branch information
fb55 committed Aug 5, 2021
1 parent 39727fd commit f5aed75
Showing 1 changed file with 180 additions and 109 deletions.
Loading

0 comments on commit f5aed75

Please sign in to comment.