Skip to content

Commit

Permalink
Remove optimizeForReading parameter to compensate for dotnet/runtime#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffhandley authored Jun 27, 2023
1 parent 3630169 commit dd14c7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ public class CtorFromCollection<T>
public FrozenDictionary<T, T> FrozenDictionary() => _dictionary.ToFrozenDictionary();

[Benchmark]
public FrozenDictionary<T, T> FrozenDictionaryOptimized() => _dictionary.ToFrozenDictionary(optimizeForReading: true);
public FrozenDictionary<T, T> FrozenDictionaryOptimized() => _dictionary.ToFrozenDictionary();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void Setup()
_immutableDictionary = Immutable.ImmutableDictionary.CreateRange<TKey, TValue>(_source);
_immutableSortedDictionary = Immutable.ImmutableSortedDictionary.CreateRange<TKey, TValue>(_source);
_frozenDictionary = _source.ToFrozenDictionary();
_frozenDictionaryOptimized = _source.ToFrozenDictionary(optimizeForReading: true);
_frozenDictionaryOptimized = _source.ToFrozenDictionary();
}

[Benchmark]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void Setup()
_immutableDictionary = Immutable.ImmutableDictionary.CreateRange<TKey, TValue>(_source);
_immutableSortedDictionary = Immutable.ImmutableSortedDictionary.CreateRange<TKey, TValue>(_source);
_frozenDictionary = _source.ToFrozenDictionary();
_frozenDictionaryOptimized = _source.ToFrozenDictionary(optimizeForReading: true);
_frozenDictionaryOptimized = _source.ToFrozenDictionary();
}

[Benchmark]
Expand Down

0 comments on commit dd14c7d

Please sign in to comment.