# std.heap.SmpAllocator: alternate freelist accounting · gitcafe/zig

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

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

Visibility: public

Requested revision: b09e3efad444a0008f8a6cd858f9b4c45f23f743

Requested commit: b09e3efad444a0008f8a6cd858f9b4c45f23f743

Commit: b09e3efad444a0008f8a6cd858f9b4c45f23f743

Tree: ff628049f75ce8e52855cd299281b81aad3af1fd

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.heap.SmpAllocator: alternate freelist accounting

Freelist length accounting in alloc had a negative impact, especially
with the integer type bumped up to u16, so I changed the system to be
based on counting slabs rather than total allocations.

```

## Parents

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

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