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

copies by reference instead of reconstructing the whole tuple #3

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

issy123
Copy link

@issy123 issy123 commented Jul 9, 2022

No description provided.

@issy123
Copy link
Author

issy123 commented Jul 9, 2022

since we only use the tuple in two places, where one of the two places uses the copy i've made the copy use reference instead of reconstructing the whole tuple since that's not necessary.
The deletion has also changed to de-reference instead of setting the array's length to 0

image

@isaac-mason
Copy link
Member

Thanks for the PR! 🙂

LGTM, I'll merge & release shortly.

@isaac-mason isaac-mason merged commit d6f82ba into pmndrs:master Jul 11, 2022
@isaac-mason
Copy link
Member

@issy123 I see you've got an open PR in the original repo: schteppe#366

Are there other improvements in that PR that you think should be brought over?

@issy123
Copy link
Author

issy123 commented Jul 11, 2022

No not really tbh

most of my changes were bullshit

@isaac-mason
Copy link
Member

isaac-mason commented Jul 12, 2022

Haha, no worries then :) thanks again for this one

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.

2 participants