{"type":"rich","version":"1.0","author_name":"Tomas [ARCHIVE] (npub1rs…9evk4)","author_url":"https://nostr.ae/npub1rsp4w56r24w3zv4xy8zfgesep45qmf9rq6aghxfw3wr7yemqnnwsf9evk4","provider_name":"njump","provider_url":"https://nostr.ae","html":"📅 Original date posted:2017-04-07\n📝 Original message:Answering both,\n\n\n\nOn Fri, Apr 7, 2017 at 11:18 AM, Gregory Maxwell via bitcoin-dev \u003cbitcoin-dev at lists.linuxfoundation.org\u003e wrote:\n\u003e\u003e \n\n\u003e\u003e I'm still lost on this-- AFAICT your proposals long term resource\n\n\u003e\u003e requirements are directly proportional to the amount of\n\u003e\u003e unspent output\n\u003e\u003e data, which grows over time at some fraction of the total transaction\n\u003e\u003e volume (plus the rate of spending which is more or less a constant).\n\u003e\u003e \n\n\u003e\u003e Can you help out my understanding here?\n\n\u003e\u003e \n\n\n\nOn Fri, Apr 7, 2017, at 20:39, Bram Cohen wrote:\n\n\u003e Expanding on this question a bit, it's optimized for parallel access,\n\u003e but hard drive access isn't parallel and memory accesses are very\n\u003e fast, so shouldn't the target of optimization be about cramming as\n\u003e much as possible in memory and minimizing disk accesses?\n\n\nThe long term *minimal disk storage* requirement, can obviously not be\nless then all the unspent outputs. Minimal disk requirements is not\nsomething bitcrust attempts to address.\n\n\n The storage that is accessed during peak load (block validation with\n pre-synced transactions), is minimized as this only needs the\n transaction index (to lookup ptrs from hashes), the tip of the spend-\n tree and the tip of the spend-index (together to check double\n spents/spending non-existing outputs). These not only easily fit in\n RAM, but are accessed in a cache efficient way. *These* only grow with\n inputs as the spend tree contains one record per input referencing the\n output being spent.\n\n\nScript validation is also not something bitcrust *directly* addresses;\nit uses libbitcoinconsensus for the actual validation and lookups to\noutputs are mostly similar. They are kept fast by trusting the OS on MRU\ncaching of transaction-outputs; I don't think that for this part the\nUTXO index has much drawbacks,. Bitcrust seems to have a small advantage\ndue to the awesomeness of Rayon's parallelization and the lock-free data\nstructures, but a disadvantage in that keeping all spent outputs\ndecreases spatial locality of reference. Script validation is not the\ninnovative part.\n\n\nTomas\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20170407/f7db76c7/attachment.html\u003e"}
