# std/json: use bit-stack for nesting instead of large LLVM integer type · gitcafe/zig

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

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

Visibility: public

Requested revision: dcd88ae568a1e9c0315b39801c9ca124e0e9aefc

Requested commit: dcd88ae568a1e9c0315b39801c9ca124e0e9aefc

Commit: dcd88ae568a1e9c0315b39801c9ca124e0e9aefc

Tree: e9abd9ed1985287aed82d880fa3e3e1744958118

Author: Marc Tiehuis

Committer: Andrew Kelley

## Message

```
std/json: use bit-stack for nesting instead of large LLVM integer type

The stack has been adjusted so that instead of pushing to index 0 in the
integer we push to the current end/index of the underlying integer. This
means we don't require a shift for every limb after each push/pop and
instead only require a mask/or and add/sub on a single element of the array.

Fixes #5959.

```

## Parents

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

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