diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-06-02 04:24:25 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-10 20:47:59 -0700 |
| commit | da24ea7f36d056cb49e8e91064f06cb724e46f67 (patch) | |
| tree | 0b3920d68166cf664d4c72731d1260ea34a82d72 /src/InternPool.zig | |
| parent | 04e66e6b4deb67aef9a4064decd82a678cb7ec82 (diff) | |
| download | zig-da24ea7f36d056cb49e8e91064f06cb724e46f67.tar.gz zig-da24ea7f36d056cb49e8e91064f06cb724e46f67.zip | |
Sema: rewrite `monomorphed_funcs` usage
In an effort to delete `Value.hashUncoerced`, generic instantiation has
been redesigned. Instead of just storing instantiations in
`monomorphed_funcs`, partially instantiated generic argument types are
also cached. This isn't quite the single `getOrPut` that it used to be,
but one `get` per generic argument plus one get for the instantiation,
with an equal number of `put`s per unique instantiation isn't bad.
Diffstat (limited to 'src/InternPool.zig')
0 files changed, 0 insertions, 0 deletions
