# InternPool: avoid indexToKey recursion for ptr_elem,ptr_field · gitcafe/zig

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

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

Visibility: public

Requested revision: b336866fbc1edd4c999d3cd5d62ae7230d176fa7

Requested commit: b336866fbc1edd4c999d3cd5d62ae7230d176fa7

Commit: b336866fbc1edd4c999d3cd5d62ae7230d176fa7

Tree: 7c99d4d707c360c51fc56189b2393068144b626d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
InternPool: avoid indexToKey recursion for ptr_elem,ptr_field

This is a hot function, and recursion makes it more difficult to
profile, as well as likely making it more difficult to optimize.

```

## Parents

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

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