Skip to content

Conversation

@Davoodeh
Copy link

@Davoodeh Davoodeh commented May 1, 2025

Some internal (in_*) functions define an inner value and copy it over a given buffer. This complicates lifetimes and an extra copy is introduced which can be prevented.

In this minor change, these functions get their mutable pointers and directly assign on them instead of allocating a new instance and copying it then freeing the original.

Some internal (`in_*`) functions define an inner value and copy it over
a given buffer. This complicates lifetimes and an extra copy is
introduced which can be prevented.

In this minor change, these functions get their mutable pointers and
directly assign on them instead of allocating a new instance and copying
it then freeing the original.
@Davoodeh
Copy link
Author

Davoodeh commented May 4, 2025

#35 (comment)

@Davoodeh Davoodeh closed this May 4, 2025
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