Yuki Kishimoto on Nostr: Thank you. I'm still improving and studying better the negentropy protocol. I ...
Thank you. I'm still improving and studying better the negentropy protocol.
I converted the code from C++ to Rust in basically a day and half (I'm not a C++ dev so some thing could be converted badly) and are there some things to fix/improve.
Like, I noticed an unstable performance with reconcilie_with_ids method with a set of 50000 items: it usually took 600 ms the final reconciliation but often it took 2 or 4 secs (executing exactly the same code).
Thanks, I'll replace the String with a vector.
BTW, I'm planning to release also bindings for some languages (Kotlin, Swift and Python) using UniFFI, like I have done for rust-nostr libraries.
Published at
2023-09-11 22:04:13Event JSON
{
"id": "7633f28df33d0a7333617678a4054387cfceb7dd648954d7f357352027c809e6",
"pubkey": "68d81165918100b7da43fc28f7d1fc12554466e1115886b9e7bb326f65ec4272",
"created_at": 1694469853,
"kind": 1,
"tags": [
[
"e",
"0ac14895356511ee786de1fb0c20cd7c3351fa216663dc1999e882b7db02b953",
"",
"root"
],
[
"e",
"7acda50041a59ea98cb95430f95eabf8dc0127fe511674b2ed645c73570d405b",
"",
"reply"
],
[
"p",
"68d81165918100b7da43fc28f7d1fc12554466e1115886b9e7bb326f65ec4272"
],
[
"p",
"218238431393959d6c8617a3bd899303a96609b44a644e973891038a7de8622d"
]
],
"content": "Thank you. I'm still improving and studying better the negentropy protocol. \nI converted the code from C++ to Rust in basically a day and half (I'm not a C++ dev so some thing could be converted badly) and are there some things to fix/improve.\nLike, I noticed an unstable performance with reconcilie_with_ids method with a set of 50000 items: it usually took 600 ms the final reconciliation but often it took 2 or 4 secs (executing exactly the same code).\n\nThanks, I'll replace the String with a vector.\n\nBTW, I'm planning to release also bindings for some languages (Kotlin, Swift and Python) using UniFFI, like I have done for rust-nostr libraries.",
"sig": "fedbe359bc0186e097a63c2bf8bff29f6248dd1887f6dc952972a0df56488ec96ed0e54433f64f5211a04a25536ca30bddb47bd23de7481adcdfe4ef73cfa10a"
}