Electronic-Gulden-Foundation / ROT

Ring of Trust
MIT License
1 stars 2 forks source link

[BUG] Memory Leak #5

Open AmazingDreams opened 10 years ago

AmazingDreams commented 10 years ago

When processing a lot of blocks at once, memory is leaking somewhere.

gerritoerlemans commented 10 years ago

All right; Never noticed, processing all blocks at once (Memory limit here is 128M) Maybe a few unsets are needed although these should be implicit.

AmazingDreams commented 10 years ago

I figure it is a better idea to separate the indexing from the ROT. Therefore I have started working on a library (which I want to use anyway) which does exactly that. Provide a backend for reading the chain but leave it up to the user to decide where and how he is going to store the information.

It will probably be more bloated than a procedural approach, but the flexibility is a big plus.

gerritoerlemans commented 10 years ago

Perfect ! The index just allows fast navigation and future "duties" may require speed in different directions. Beyond ROT it is also a building block for wallet services e.a.