I think most of the data structures from model.rs that we put into sets and hash maps implement Clone (or they could). Right now everything in the reasoner.rs state collections is in Rc, e.g.,
how does this affect speed and overall memory usage?
All the model structures should be considered immutable. Does that affect the clone implementation? Can we implement something that doesn't deep copy all nested structures?
Here are docs on this for
im
: https://docs.rs/im/latest/im/#valuesI think most of the data structures from
model.rs
that we put into sets and hash maps implementClone
(or they could). Right now everything in thereasoner.rs
state collections is in Rc, e.g.,if we make everything more like
how does this affect speed and overall memory usage?
All the model structures should be considered immutable. Does that affect the clone implementation? Can we implement something that doesn't deep copy all nested structures?