0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00

Namespace.decls use context to save memory

change `Module.Namespace.decls` from `AutoArrayHashMapUnmanaged` to
`ArrayHashMapUnmanaged(*Decl, void)` with custom context to eliminate
duplicated decl name strings.

Also see:
https://zig.news/andrewrk/how-to-use-hash-map-contexts-to-save-memory-when-doing-a-string-table-3l33
This commit is contained in:
jagt 2022-03-25 22:53:58 +08:00 • committed by Veikka Tuominen
commit 29c32b3dc5
2 changed files with 40 additions and 16 deletions