# frontend: TrackedInst stores FileIndex instead of path digest · gitcafe/zig

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

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

Visibility: public

Requested revision: 74346b0f79ca4bf67d61008030c7cc3565bff3f9

Requested commit: 74346b0f79ca4bf67d61008030c7cc3565bff3f9

Commit: 74346b0f79ca4bf67d61008030c7cc3565bff3f9

Tree: 69bdcb7800608daed4a8908406623f3bab38f0e4

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
frontend: TrackedInst stores FileIndex instead of path digest

The purpose of using path digest was to reference a file in a
serializable manner. Now that there is a stable index associated with
files, it is a superior way to accomplish that goal, since removes one
layer of indirection, and makes TrackedInst 8 bytes instead of 20.

The saved Zig Compiler State file for "hello world" goes from 1.3M to
1.2M with this change.

```

## Parents

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

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