-
Notifications
You must be signed in to change notification settings - Fork 43
Memory disposal #17
Comments
dispose kills all the streams, so there won't be external references to it... |
@dominictarr that assumes all references to Row's are GC'd. That's a big assumption. |
hmm, okay, so maybe we want to call |
or! loop all rows null out |
that is messy! I want a test for this. As I said, you don't need to null hist, because there will be no references to it. You'll need to find some documentation on triggering GC in javascript, or some sort of test case, |
@dominictarr I don't want to rely on GC nor my ability to not leak memory with closures when using scuttlebutt on the server. I just want to nuke old docs that are no longer relevant |
Well, you are welcome to do that, but I am not bringing code into crdt unless it can be demonstrated to work. |
Should crdt listen to the dispose event and purge it's history / memory when it occurs.
How else would I say
doc.destroy()
to indicate the document is no longer necessary and I want to release the memory.The text was updated successfully, but these errors were encountered: