franzap on Nostr: Does it feel wrong to access memory synchronously? It all depends on the i/o ...
Does it feel wrong to access memory synchronously?
It all depends on the i/o operation, where and for how long it's blocking. Nostrdb should be crazy fast, way faster than sqlite3 whose most popular bindings are...also sync.
Sync allows for API design that async does not, and I want that flexibility at this lower level. You can always turn sync into async but not the other way round.
Published at
2025-01-03 02:58:39Event JSON
{
"id": "7ea2e7df1d324a1aa29a5902c8d06e7110e561e777c0b4ee3e170f5695134146",
"pubkey": "726a1e261cc6474674e8285e3951b3bb139be9a773d1acf49dc868db861a1c11",
"created_at": 1735873119,
"kind": 1,
"tags": [
[
"e",
"05e7fc88045568f680a574bc24daba3e3da3815ef9d6c10c8082c3fa9e4ac742",
"",
"root"
],
[
"e",
"fa9d5aa00eca670a0a7a3d9e585b3252a940ae0ca0c4cde48e10280117c13687"
],
[
"e",
"90de7bd2e892ce4b8e2bac5cd695d2a4b7356b52fb99ce184269235dc23f4b82",
"",
"reply"
],
[
"p",
"726a1e261cc6474674e8285e3951b3bb139be9a773d1acf49dc868db861a1c11"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
]
],
"content": "Does it feel wrong to access memory synchronously?\n\nIt all depends on the i/o operation, where and for how long it's blocking. Nostrdb should be crazy fast, way faster than sqlite3 whose most popular bindings are...also sync.\n\nSync allows for API design that async does not, and I want that flexibility at this lower level. You can always turn sync into async but not the other way round.",
"sig": "4e0195bf9e1dd87a1e5af7de49c1fa96ab513b885c1574efe689f83f62f0a894472dd19ef14524a905c60310de584c48d6363e05a277be6b3953ea9e3992e9fa"
}