提交 721e95d5 编写于 作者: M Matt Warren

revert to value equality in reference map

上级 9b4b2cbe
......@@ -420,8 +420,9 @@ private class ReferenceMap
private readonly Dictionary<object, int> _valueToIdMap;
private int _nextId;
// note: uses value equality so strings get unified for better compaction
private static readonly ObjectPool<Dictionary<object, int>> s_dictionaryPool =
new ObjectPool<Dictionary<object, int>>(() => new Dictionary<object, int>(128, ReferenceEqualityComparer.Instance));
new ObjectPool<Dictionary<object, int>>(() => new Dictionary<object, int>(128));
private ReferenceMap(ImmutableDictionary<object, int> baseMap)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册