You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Is there a way to find out if created flat or 'fallen back to be fragmented'?

    You can check manually with trace(var)

    I assume that a compact is not possible because of chosen memory architecture

    It is possible, and it would be pretty easy to create an 'old->new' mapping on the stack and use that to re-map everything (as long as you left the 'locked' variables alone). It just hasn't been done yet because I don't have as much time as I'd like :) I have to focus what time I have on the enhancements and fixes that matter to most people, and I don't think that the fragmentation will actually be a big issue in most use cases.

    It's also important to note that the thing that might fail (native functions) will tend to allocate quite small flat strings - which is extremely unlikely to fail even when the memory is very fragmented.

About

Avatar for Gordon @Gordon started