# Compilation: avoid caching root source file twice · gitcafe/zig

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

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

Visibility: public

Requested revision: 41eff5723dd61b19be88830f16d76514583e3339

Requested commit: 41eff5723dd61b19be88830f16d76514583e3339

Commit: 41eff5723dd61b19be88830f16d76514583e3339

Tree: e1a0469d807448c2814249a3e4509ddb65bc1b52

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Compilation: avoid caching root source file twice

The deleted lines here are redundant because they happen first thing
inside the function call below.

Additionally, skip hashing the root source file if it is an empty
string. I explored making this field along with `root` optional but
found this to be less messy actually.

```

## Parents

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

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