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

Avoid allocation of new path when resolving path ambiguities #2904

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

kyri-petrou
Copy link
Collaborator

See this comment.

Unfortunately I couldn't eliminate the allocation of the Chunk from get but that would require us to duplicate a lot of the logic. I think that since this branch is only executed when resolving ambiguities (which is quite rare) I think it's acceptable to leave it like this

@kyri-petrou
Copy link
Collaborator Author

/cc @jdegoes

Copy link
Member

@jdegoes jdegoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done! Thanks so much for the followup. 🙏

@jdegoes jdegoes merged commit ec93989 into zio:main Jun 13, 2024
33 checks passed
@kyri-petrou kyri-petrou deleted the avoid-path-splitting-allocation branch June 13, 2024 13:52
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