#1742: Skip compact_pool if all blocks are almost full
-----------------------+----------------------------------------------------
 Reporter:  nwellnhof  |        Type:  patch 
   Status:  new        |    Priority:  normal
Milestone:             |   Component:  GC    
  Version:  2.6.0      |    Severity:  medium
 Keywords:             |        Lang:        
    Patch:  new        |    Platform:        
-----------------------+----------------------------------------------------
 If all blocks except the top block are almost full, compacting isn't
 needed. The attached patch makes compact_pool return early in this case.

 Also, pad_pool_size currently includes pools that are almost full. This
 means that more memory is allocated than needed. It isn't a big problem
 because most of the time the memory will be used sooner or later, but it's
 cleaner to account for the almost full blocks here.

 Plus a micro optimization in is_block_almost_full.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1742>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to