finwo / gunjs-currency

Initial repo for gunjs-based currency development
Other
0 stars 3 forks source link

Gun memory usage #6

Open finwo opened 4 years ago

finwo commented 4 years ago

Last I checked, gun keeps all the data it knows about in it's memory. If that is the case, we'll run into trouble soon after deploying due to memory overflows when checking if a certain transaction is valid or not (checking for double-spending etc).

If gun still keeps all known data in memory, we'll need to devise a way to overwrite old data instead of adding, while still allowing large nodes to keep track of the whole chain/tangle of transactions/blocks.

finwo commented 4 years ago

@W4G1 @aethiop Have either of you experimented with this lately? For me, it was over a year ago where I ran it with large data sets.

aethiop commented 4 years ago

@finwo I haven't tested that out yet but I think Radix should be able to solve that issue wouldn't it?

finwo commented 4 years ago

As far as I know the radix storage just handles long-term storage, so the node still has (some) data upon restart & doesn't have to fetch everything over the network again.