Ignore:
Timestamp:
Nov 21, 2005 4:58:03 PM (19 years ago)
Author:
bennylp
Message:

Small optimization in pool (removed used_size)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/pool_caching.c

    r66 r69  
    175175    /* Reset pool. */ 
    176176    PJ_LOG(4, (pool->obj_name, "recycle(): cap=%d, used=%d(%d%%)",  
    177                pool->capacity, pool->used_size, pool->used_size*100/pool->capacity)); 
     177               pool->capacity, pj_pool_get_used_size(pool),  
     178               pj_pool_get_used_size(pool)*100/pool->capacity)); 
    178179    pj_pool_reset(pool); 
    179180 
     
    208209        while (pool != (void*)&cp->used_list) { 
    209210            PJ_LOG(3,("cachpool", "   %12s: %8d of %8d (%d%%) used", pool->obj_name,  
    210                                   pool->used_size, pool->capacity, 
    211                                   pool->used_size*100/pool->capacity)); 
    212             total_used += pool->used_size; 
     211                                  pj_pool_get_used_size(pool), pool->capacity, 
     212                                  pj_pool_get_used_size(pool)*100/pool->capacity)); 
     213            total_used += pj_pool_get_used_size(pool); 
    213214            total_capacity += pool->capacity; 
    214215            pool = pool->next; 
Note: See TracChangeset for help on using the changeset viewer.