Skip to content

new trait serialization, copyless bytes/str writer, and a str form_slice #3507

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

Closed
wants to merge 3 commits into from

Conversation

erickt
Copy link
Contributor

@erickt erickt commented Sep 15, 2012

This is my version of a new trait-based serialization. It's a pretty straightforward port to traits. I named it serialization2 as we'll need to do the snapshot-dance in order to replace the old serialization. After we get this into a snapshot, I'll upgrade ebml, json, and the auto serializer to use it.

Also, this patch includes a new rewrite of the io bytes writer to cut down on the copies, and replacing the unwieldy str::raw::from_buf_len_nocopy with a str::raw::form_slice that matches the vec function.

@erickt
Copy link
Contributor Author

erickt commented Sep 17, 2012

I got some things I want to merge in tomorrow, so I going to close this for now.

@erickt erickt closed this Sep 17, 2012
bors pushed a commit to rust-lang-ci/rust that referenced this pull request May 15, 2021
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Apr 25, 2024
avoid 'let _' in tests where we actually want the value to be computed
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