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

Use unsafe instead of reflection for transferring non-blittable types #142

Open
dpanfilyonok opened this issue Jul 15, 2022 · 0 comments
Open

Comments

@dpanfilyonok
Copy link

dpanfilyonok commented Jul 15, 2022

Is your feature request related to a problem? Please describe.
Using reflection to transfer non-blittable types can be quite slow.

Describe the solution you'd like
Use unsafe calls for transferring non-blittable types. Namely, modify CustomMarshaler class and related to use Unsafe instead of Marshal.StructureToPtr etc.

Additional context
Version: 2.0.0

Related
WIP

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

No branches or pull requests

1 participant