# fix accidental quadratic dependence on haystack length in replace and replacementSize \(\#8859\) · gitcafe/zig

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

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

Visibility: public

Requested revision: f4101c1153980b887e9aa8850ac0a9dd88192140

Requested commit: f4101c1153980b887e9aa8850ac0a9dd88192140

Commit: f4101c1153980b887e9aa8850ac0a9dd88192140

Tree: 0cd4c7586b1c1949f92e471525718fb4ae67c4db

Author: Matthew Borkowski

Committer: GitHub

## Message

```
fix accidental quadratic dependence on haystack length in replace and replacementSize (#8859)


```

## Parents

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

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