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

[stdlib] Fix make String.join() work on StringSlice #3677

Draft
wants to merge 8 commits into
base: nightly
Choose a base branch
from

Conversation

martinvuyk
Copy link
Contributor

@martinvuyk martinvuyk commented Oct 16, 2024

Fix make String.join() work on StringSlice by using the fast_join() method now renamed join_bytes() without needing to allocate for each slice. Changes to BytesCollectionElement were needed to allow for non-owning types to work with it (StringSlice).

Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
@martinvuyk martinvuyk marked this pull request as ready for review October 28, 2024 15:18
@martinvuyk martinvuyk requested a review from a team as a code owner October 28, 2024 15:18
Signed-off-by: martinvuyk <martin.vuyklop@gmail.com>
@martinvuyk martinvuyk marked this pull request as draft October 31, 2024 01:31
@JoeLoser
Copy link
Collaborator

JoeLoser commented Nov 1, 2024

Is this still something you want to keep in Draft or push forward with while other things are stalled on compiler issues?

@martinvuyk
Copy link
Contributor Author

This depends on #3528, I reimplemented the code for as_bytes_read() here but I figured I better wait for the generic as_bytes() and this will be cleaner and change a lot less things

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