One more thing I forgot: region based MM is not only unsafer than 
alloc/dealloc, it can also easily produce enormous space leaks that are much 
worse than the usual factor of 2-3 in memory consumption that tracing GC 
technology requires:
    
    
    withRegion r:
      while tooLong:
        allocMemFrom r
    
    
    Run

Yes, yes, you simply free all the memory after a "request" or at the end of 
your "frame", you don't need a GC for that. Except, that you didn't actually 
solve the problem as the peak memory consumption can be unbounded. Memory 
management is hard and `--gc:arc/orc` is the best tunable, general purpose 
strategy around, all things considered.

Reply via email to