4 ms·
Why the "reads" field? It is just filled and cleared, but never used. This also solves GC issues.
by qznc 11y ago
Why the "reads" field? It is just filled and cleared, but never used. This also solves GC issues.
- reycharles 11y agoIt seems "reads" is used in "invalidate" to remove the cell from "observers" in the cells in "reads".
- qznc 11y agoYes. I missed that. Nevertheless, removing the "reads" seems more worthwhile than removing "observers". You want to model the data flow efficiently, not the data dependencies. The dependencies are provided indirectly in the code anyways.
- art-w 11y agoEven if you manage to remove the explicit "reads" field, the "code" thunk is still going to point to the parent cells, so that wouldn't help the GC much.