You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a problem that when calling RuntimeObject::into_change, the value of RuntimeObject is moved, but we need to put it in the cache, so we need to implement a reference version of into_change. This requires implementing a reference version of GlobalValue::into_effect in the move repo.
ObjectRuntime::load_object returns &mut RuntimeObject. If the cache is added, the reference can be returned from two sources: ObjectRuntime itself and the cache. This may make a lot of the interface to be changed.
As ObjectRuntime::load_object is recursive, it may result in more than one mut reference to the cache.
Proposal Details
Add a cache to the ObjectRuntime for caching runtime objects.
Once the runtime objects are read from cache, there is no need to deserialize object from bytes, thus improving the speed of transaction execution.
The text was updated successfully, but these errors were encountered: