This serialization is a performance bottleneck and should be avoided.
canSet.index can handle finding the index of the updated item (props) in the list directly instead of in the serialized list. Then the updated item (hydrateInstance( props )) can be spliced directly into the list.
During real-time updates, the list is serialized so that
updatedList
can be called:https://github.com/canjs/can-connect/blob/12ed9051c861f08d5ff6d2952d500221a20e0599/real-time/real-time.js#L431-L455
This serialization is a performance bottleneck and should be avoided.
canSet.index
can handle finding the index of the updated item (props
) in the list directly instead of in the serialized list. Then the updated item (hydrateInstance( props )
) can be spliced directly into the list.