stateright icon indicating copy to clipboard operation
stateright copied to clipboard

Smaller (and lazy/persistent) states

Open graydon opened this issue 4 years ago • 1 comments

The system state representation in the actor subsystem is relatively large and eagerly copies vectors and btrees full of contents when cloned. This makes it relatively memory-hungry, which in turn limits the size of the state-space it's possible to explore.

How would you feel about changes that reworked the representation to use lazy/persistent types (that copy-on-write only the substructures written) like those in the im crate? They are a bit slower than the eager types but I think they can take up substantially less room.

graydon avatar May 31 '20 03:05 graydon

I think it’s worth exploring, and I’m curious to learn how the performance differs for your use case.

jonnadal avatar May 31 '20 06:05 jonnadal