# Remove usage of inline for from print_targets.cmdTargets · gitcafe/zig

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

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

Visibility: public

Requested revision: cea310c9082a985b103953dd84579aa1a6dce6ea

Requested commit: cea310c9082a985b103953dd84579aa1a6dce6ea

Commit: cea310c9082a985b103953dd84579aa1a6dce6ea

Tree: ca107880795aca1ed9be4fe0f4d6e4e929a4e9c4

Author: Jimmi Holst Christensen

Committer: Andrew Kelley

## Message

```
Remove usage of inline for from print_targets.cmdTargets

This function was one of the biggest zig functions in a debug build of
the compiler.

  $ bloaty stage3-debug/bin/zig -d symbols --tsv -n 10000000 |
      rg -v '(llvm|clang|std|lld|\(anonymous namespace\))::|\[section ' |
      sort -h -k 3

  ...
  translate_c.ast.renderNode                    86168   86219
  main.buildOutputType                         177959  178004
  InfoTable                                    184832  184870
  AArch64SVEIntrinsicMap                       188544  188596
  print_targets.cmdTargets__anon_4735          319156  319216
  __static_initialization_and_destruction_0()  486666  489582
  MatchTable1                                  621884  621997
  OperandMatchTable                           1139622 1139861
  MatchTable0                                 1899764 1900141

```

## Parents

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

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