Mo Bitar :ferris: on Nostr: Faster Rust Serialization 🚀 A blog post about avoiding allocations and improving ...
Faster Rust Serialization 🚀
https://mo8it.com/blog/faster-rust-serializationA blog post about avoiding allocations and improving the performance of serialization in #Rust!
It doesn't only apply to JSON, but to any #serde serializer.
The example in the blog post shows a speedup of up to 2.25x 🤯
Feedback welcome

#RustLang
Published at
2023-10-25 20:56:03Event JSON
{
"id": "822b0aca7d23a2dbf72c5271a8ae10f2a078a72cd0603894915536c562a6216f",
"pubkey": "979383f8767c5d795fcad86f82dc7b38b384c1a473710c433014dc2c0fb0e359",
"created_at": 1698267363,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"t",
"serde"
],
[
"t",
"rustlang"
],
[
"emoji",
"blobcatheart",
"https://cdn.fosstodon.org/custom_emojis/images/000/215/030/original/1d58448925dbe06c.png"
],
[
"proxy",
"https://fosstodon.org/users/mo8it/statuses/111297649907758480",
"activitypub"
]
],
"content": "Faster Rust Serialization 🚀 \n\nhttps://mo8it.com/blog/faster-rust-serialization\n\nA blog post about avoiding allocations and improving the performance of serialization in #Rust!\n\nIt doesn't only apply to JSON, but to any #serde serializer.\n\nThe example in the blog post shows a speedup of up to 2.25x 🤯\n\nFeedback welcome :blobcatheart:\n\n#RustLang\n\nhttps://cdn.fosstodon.org/media_attachments/files/111/297/626/194/727/930/original/7fa5a91f69c1bc05.png",
"sig": "c56d6aea13ed13b003bd3cb0be3205dbb801587f3ca60453e1374d0388b94f27ec44457fa80744a14a026987ebfc820165b1de6f3ba50db075af284bd061c893"
}