# std: remove loop from growCapacity · gitcafe/zig

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

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

Visibility: public

Requested revision: 0c1fbc4ea6ff5c74b83d3959eac0b355570bd439

Requested commit: 0c1fbc4ea6ff5c74b83d3959eac0b355570bd439

Commit: 0c1fbc4ea6ff5c74b83d3959eac0b355570bd439

Tree: c2b4473f8ce7ef2a69e6ab3f9b9d53aa4591fb1d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std: remove loop from growCapacity

I measured this against master branch and found no statistical
difference. Since this code is simpler and logically superior due to
always leaving sufficient unused capacity when growing, it is preferred
over status quo.

```

## Parents

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

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