# dwarf: optimize dwarf parsing for speed · gitcafe/zig

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

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

Visibility: public

Requested revision: 247e4ac3cc18a1a29bc180873b7b9f946f515212

Requested commit: 247e4ac3cc18a1a29bc180873b7b9f946f515212

Commit: 247e4ac3cc18a1a29bc180873b7b9f946f515212

Tree: f4b479b4deb3ad2b3c0440f936107adffa81b80c

Author: Jacob Young

Committer: Jacob Young

## Message

```
dwarf: optimize dwarf parsing for speed

This code is run when printing a stack trace in a debug executable, so
it has to be fast even without compiler optimizations.

Adding a `@panic` to the top of `main` and running an x86_64 backend
compiled compiler goes from `1m32.773s` to `0m3.232s`.

```

## Parents

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

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