Assume that you have loaded a large data structure (like a table index in a database) and now you want to make a change.
If I understand correctly, you need to create a new state (including you change) based on the current state (what you have loaded from the disk) and assign it to the current identity that you have.
This will be pretty slow in a large data structure because runtime needs to duplicate a big chunk of memory. Is there a practical alternative?
updateorassoc. You can use transients to make it faster though.transients.