KoalaSat on Nostr: ...
Some benchmarks of the first version of Samiz's sync code:
Case: 2 devices with 1 different nostr event each
Time from "First seen" to "Devices fully sync": 2.606 secs
Time for a full circle (1 event sent + 1 event received): 0.09 secs
Performance looks great, but:
- There is going to be an extra calculation time when it comes to Negentropy and long lists of events
- This is being tested with both decides on the same room, looks like I'm going to need to touch some grass for testing 😬
I'll work now on the connection to Citrine, which should allow me to stream events once the devices are in sync and still connected.
https://github.com/KoalaSat/samizKudos to
Vitor Pamplona (nprofile…pyug) for working on the Kotlin Negentropy library 🚀
Published at
2025-02-13 16:52:37Event JSON
{
"id": "2ff2710f035e9f3a84eb9d8b6c2299ebc972b35704f5a904158726cc9dc431ae",
"pubkey": "645681b9d067b1a362c4bee8ddff987d2466d49905c26cb8fec5e6fb73af5c84",
"created_at": 1739465557,
"kind": 1,
"tags": [
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
"",
"mention"
],
[
"r",
"https://image.nostr.build/b45d41efa5d13ba8eb35636bce888bc2da26d3654c05a13f7806ccbf58ad83da.jpg"
],
[
"r",
"https://github.com/KoalaSat/samiz"
],
[
"imeta",
"url https://image.nostr.build/b45d41efa5d13ba8eb35636bce888bc2da26d3654c05a13f7806ccbf58ad83da.jpg",
"x 3f3352ac65fa5e273511369b8027bd50829793ba1f9cc36af735b503f3268471",
"size 123631",
"m image/jpeg",
"dim 1000x600",
"blurhash iJHo5dJW009Gwat8yDs:EN.myWVDibJTs.n-kqni-;tRE0t5%1M|NGtQr]%hWV$dNdWZIoV?t7N1%2NtxDbcofRPR*t7Rk",
"ox 3f3352ac65fa5e273511369b8027bd50829793ba1f9cc36af735b503f3268471",
"alt "
]
],
"content": "https://image.nostr.build/b45d41efa5d13ba8eb35636bce888bc2da26d3654c05a13f7806ccbf58ad83da.jpg\n\nSome benchmarks of the first version of Samiz's sync code:\n\nCase: 2 devices with 1 different nostr event each\n\nTime from \"First seen\" to \"Devices fully sync\": 2.606 secs\n\nTime for a full circle (1 event sent + 1 event received): 0.09 secs\n\nPerformance looks great, but:\n\n- There is going to be an extra calculation time when it comes to Negentropy and long lists of events\n\n- This is being tested with both decides on the same room, looks like I'm going to need to touch some grass for testing 😬\n\nI'll work now on the connection to Citrine, which should allow me to stream events once the devices are in sync and still connected.\n\nhttps://github.com/KoalaSat/samiz\n\nKudos to nostr:nprofile1qqsyvrp9u6p0mfur9dfdru3d853tx9mdjuhkphxuxgfwmryja7zsvhqpzamhxue69uhhv6t5daezumn0wd68yvfwvdhk6tcpz9mhxue69uhkummnw3ezuamfdejj7qgwwaehxw309ahx7uewd3hkctcscpyug for working on the Kotlin Negentropy library 🚀\n",
"sig": "7e3bce8acbf760123e8fbdfd1a30c3743d9d48d2308433e980ebde7dc7f57c8286bc7538efa73f9c950842a4b90d5a2bdaf2536e96e7ab780fb8c5f398b10c5d"
}