Skip to content

[C#] refactor: seal PrimitiveValue and PrimitiveType, make ThrowHelper static#1109

Open
unsafePtr wants to merge 1 commit into
aeron-io:masterfrom
unsafePtr:seal-sbe-primitive-types
Open

[C#] refactor: seal PrimitiveValue and PrimitiveType, make ThrowHelper static#1109
unsafePtr wants to merge 1 commit into
aeron-io:masterfrom
unsafePtr:seal-sbe-primitive-types

Conversation

@unsafePtr
Copy link
Copy Markdown
Contributor

There is no reason PrimitiveValue and PrimitiveType are not sealed. Practically they will be never inherited. Seal them, as JIT will skip MethodTable generation and should improve the performance by a small margin.

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.

1 participant