Changeset 109 for trunk/include


Ignore:
Timestamp:
04/29/08 16:38:27 (17 years ago)
Author:
tim
Message:

reworked SK record caching to prevent unnecessary loads.

SK records now cached in iterators on an as-needed basis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/regfi.h

    r108 r109  
    182182typedef struct _regf_sk_rec
    183183{
    184   struct _regf_sk_rec* next;
    185   struct _regf_sk_rec* prev;
    186184  REGF_HBIN* hbin;      /* pointer to HBIN record (in memory) containing
    187185                         * this nk record
     
    215213  /* link in the other records here */
    216214  REGF_VK_REC** values;
    217   REGF_SK_REC* sec_desc;
    218215  REGF_HASH_LIST* subkeys;
    219216 
     
    264261  range_list* hbins;
    265262  range_list* unalloc_cells;
    266   lru_cache* sk_recs;
    267263
    268264  /* file format information */ 
     
    295291  REGF_FILE* f;
    296292  void_stack* key_positions;
     293  lru_cache* sk_recs;
    297294  REGF_NK_REC* cur_key;
    298295  uint32 cur_subkey;
     
    336333                                               const char** path);
    337334const REGF_NK_REC*    regfi_iterator_cur_key(REGFI_ITERATOR* i);
     335const REGF_SK_REC*    regfi_iterator_cur_sk(REGFI_ITERATOR* i);
    338336const REGF_NK_REC*    regfi_iterator_first_subkey(REGFI_ITERATOR* i);
    339337const REGF_NK_REC*    regfi_iterator_cur_subkey(REGFI_ITERATOR* i);
Note: See TracChangeset for help on using the changeset viewer.