Does allocation speed depend on the garbage collector being used?
        Posted  
        
            by jkff
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by jkff
        
        
        
        Published on 2010-06-01T16:30:57Z
        Indexed on 
            2010/06/01
            16:33 UTC
        
        
        Read the original article
        Hit count: 239
        
My app is allocating a ton of objects (>1mln per second; most objects are byte arrays of size ~80-100 and strings of the same size) and I think it might be the source of its poor performance.
The app's working set is only tens of megabytes. Profiling the app shows that GC time is negligibly small.
However, I suspect that perhaps the allocation procedure depends on which GC is being used, and some settings might make allocation faster or perhaps make a positive influence on cache hit rate, etc.
Is that so? Or is allocation performance independent on GC settings under the assumption that garbage collection itself takes little time?
© Stack Overflow or respective owner