Skip to content
Snippets Groups Projects
Commit 937efab2 authored by Colin Cross's avatar Colin Cross
Browse files

Use sync.Map for type field cache

The type field cache was using an atomic pointer to an immutable
map, which required copying the entire map each time a cache
entry was added.  Profiling showed that this was a significant
hot spot.  Use sync.Map instead.

Change-Id: Ie7c779c5e9e2be1cd530747d74025dcfd206763a
parent de7afaaf
Branches
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment