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

add supoort for SocketAddr SocketAddrV4 SocketAddrV6 #17

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

gcxfd
Copy link

@gcxfd gcxfd commented Mar 3, 2022

#16

@gcxfd
Copy link
Author

gcxfd commented Mar 4, 2022

see this commit c01083b , the other change are cargo fmt

@gcxfd
Copy link
Author

gcxfd commented Mar 4, 2022

another update

add write_to_box ( with features box to enable )

and see the new bench on my mac 2015
koute/serde-bench#3


test serialize_manual                      ... bench:          77 ns/iter (+/- 9)
test serialize_manual_foreign_endianness   ... bench:          75 ns/iter (+/- 6)
test serialize_prost                       ... bench:         101 ns/iter (+/- 13)
test serialize_rmp                         ... bench:          94 ns/iter (+/- 7)
test serialize_serde_bincode               ... bench:          90 ns/iter (+/- 14)
test serialize_serde_cbor                  ... bench:         171 ns/iter (+/- 20)
test serialize_serde_json                  ... bench:         399 ns/iter (+/- 21)
test serialize_serde_pickle                ... bench:         129 ns/iter (+/- 13)
test serialize_serde_rmp                   ... bench:         167 ns/iter (+/- 17)
test serialize_serde_xdr                   ... bench:         120 ns/iter (+/- 13)
test serialize_speedy                      ... bench:          83 ns/iter (+/- 9)
test serialize_speedy_box                  ... bench:          75 ns/iter (+/- 5)
test serialize_speedy_foreign_endianness   ... bench:          83 ns/iter (+/- 5)

@jeromegn
Copy link
Contributor

This sounds useful, but I think auto-formatting should've been turned off when saving files ;)

@jeromegn
Copy link
Contributor

I made my own PR (#63) following the coding style of this project and based on the latest master.

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