# link.File.Wasm.Archive: simplify · gitcafe/zig

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

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

Visibility: public

Requested revision: aaf54ce6a7e5c69c92fe30e9ca0e8ffb7765f824

Requested commit: aaf54ce6a7e5c69c92fe30e9ca0e8ffb7765f824

Commit: aaf54ce6a7e5c69c92fe30e9ca0e8ffb7765f824

Tree: 836ddeee83fad8412302651caaaa9426a2c6f544

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
link.File.Wasm.Archive: simplify

Don't use the reader interface
Avoid unnecessary heap allocations

At first I started working on incorporating the Archive fields into the
Wasm data model, however, I realized a better strategy: simply omit
Archive data from the serialized linker state. Those files can be
trivially reparsed on next compiler process start. If they haven't
changed, great. Otherwise if they have, the prelink phase needs to be
restarted anyway.

```

## Parents

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

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