Skip to content

Conversation

SergeiPavlov
Copy link
Collaborator

@SergeiPavlov SergeiPavlov commented Feb 5, 2025

These bindings are always "normalized" into HashSet<>
No need to create intermediate list

Also:

  • Remove NormalizeBindings() function, not used anymore.
  • Remove unused field SqlCompilationResult.typeIdRegistry (created some time ago for our Shared Cache implementation)

@SergeiPavlov SergeiPavlov merged commit 70f87dc into master-servicetitan Feb 6, 2025
4 checks passed
@SergeiPavlov SergeiPavlov deleted the ParameterBinding branch February 6, 2025 00:40
/// </summary>
public sealed class PersistRequest
{
private static readonly IReadOnlySet<PersistParameterBinding> EmptyBindings = new HashSet<PersistParameterBinding>();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FrozenSet.Empty ?

/// </summary>
public sealed class QueryRequest : IQueryRequest
{
private static readonly IReadOnlySet<QueryParameterBinding> EmptyBindings = new HashSet<QueryParameterBinding>();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FrozenSet.Empty ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants