Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance: Removes marshalling from NativeToManaged conversions. #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fdcastel
Copy link
Contributor

@fdcastel fdcastel commented Oct 25, 2024

Another piece of #122.

  • Reduce memory allocations in MarshalManagedToNative.
  • Convert XSQLDA / XSQLVAR (internals) to structs.
  • Appends _STRUCT suffix to XSQLDA / XSQLVAR to make the conversion path easier (can be removed, later).

- Reduce memory allocations in MarshalManagedToNative.
- Convert XSQLDA / XSQLVAR (internals) to structs.
- Appends _STRUCT suffix to XSQLDA / XSQLVAR to make the conversion path easier (can be removed, later).
@fdcastel
Copy link
Contributor Author

⚠️ I'm not seeing any changes in allocations when using .NET8. ⚠️

It's worth noting that this PR was initially created over a year ago, and at that time, the allocation differences were more noticeable.

One possible explanation could be that the .NET team has optimized allocation handling in Marshalling with the release of .NET 8.

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