Is there any plan to change the MemoryBlock to use shared memory internally so you can pass them around without coping memory – kinda like the String?
There’s a lot of stuff about that class that I don’t like - TBH I think it probably needs replacing with a new one, as changing the way it works would break a lot of people’s code now (like if it was to use shared memory that’d certainly break code where people take a copy expecting it to be different)
Do you need the copy-on-write behaviour (similar to
String)? Or could you just pass a
MemoryBlock around in a