# build: move dependency cache into Graph · gitcafe/zig

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

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

Visibility: public

Requested revision: 28189b0fa5be6b56d1d9961b4e432ac7c16a80de

Requested commit: 28189b0fa5be6b56d1d9961b4e432ac7c16a80de

Commit: 28189b0fa5be6b56d1d9961b4e432ac7c16a80de

Tree: a5bbba1435339ca84b9a2d065838eb401f0fe6ae

Author: Jonathan Marler

Committer: Jonathan Marler

## Message

```
build: move dependency cache into Graph

The dependency cache is shared amongst all Build objects. This is currently
done by allocating a single instance and storing a reference to it in each
Build object.  However, the Graph object already exists to host shared
state so by moving it there we reuse the same pattern for shared state
and avoid an extra object on the heap.

```

## Parents

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

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