# Merge pull request \#6259 from dec05eba/master · gitcafe/zig

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

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

Visibility: public

Requested revision: 644400054c5769a397ded4f569e2ac0600d65305

Requested commit: 644400054c5769a397ded4f569e2ac0600d65305

Commit: 644400054c5769a397ded4f569e2ac0600d65305

Tree: b4f340abf3922fd0ccbf0110ee5e3f2c8af77b70

Author: Andrew Kelley

Committer: GitHub

## Message

```
Merge pull request #6259 from dec05eba/master

Use boyer-moore-horspool algorithm for indexOfPos and lastIndexOf unless the haystack or needle is very small
```

## Parents

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

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

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