Skip to content
Unverified Commit 92a97fb7 authored by Jim Blandy's avatar Jim Blandy Committed by GitHub
Browse files

Simplify implementation of `Namer::namespace`. (#1438)

Eliminate `Namer::namespace_index` and remove namespace indices from
`Namer::unique` keys. Instead, implement `Namer::namespace` by just swapping in
a fresh table for the duration of the call.

Create the fresh hash table with the right initial capacity. The prior
implementation did manage to avoid allocations by sharing a hash table, and we'd
like to not lose that advantage entirely.

This has no effect on generated code.
parent a4bf25a0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment