jb55 on Nostr: I wonder if I can make nostrdb work on the web by replacing the mmap call in lmdb ...
I wonder if I can make nostrdb work on the web by replacing the mmap call in lmdb with malloc 🤔 the database wouldn’t be persistent between runs but it would enable a fast local relay with a multithreaded webworker note ingester within the browser. I will experiment 🧪
Published at
2024-04-05 19:16:26Event JSON
{
"id": "4894991ac9a31de816766550c0d15e3675eacaba8ffb7ade59d7b703ad2aaf09",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1712344586,
"kind": 1,
"tags": [],
"content": "I wonder if I can make nostrdb work on the web by replacing the mmap call in lmdb with malloc 🤔 the database wouldn’t be persistent between runs but it would enable a fast local relay with a multithreaded webworker note ingester within the browser. I will experiment 🧪",
"sig": "cbacaae7449fca4341d02963c2071d5b14f46103358fe7e7caeebaf80dd2670073a5314a2d85f332233c07ea054b43afd364cecaf4165fc9223711ea199b9bf5"
}