X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=isamc%2Fisamd-p.h;h=c27a78e14d08f73a26e77d1bfd7b3fc84ec0d31b;hb=c0a1c79e55f706009113b2de3c11a6f13d4a0e7d;hp=22859e22b1ca1cc6d0883aa4bedb7db27473611c;hpb=b3aa0c75d2016b90e8f8219ddc907fb80649d13a;p=idzebra-moved-to-github.git diff --git a/isamc/isamd-p.h b/isamc/isamd-p.h index 22859e2..c27a78e 100644 --- a/isamc/isamd-p.h +++ b/isamc/isamd-p.h @@ -1,4 +1,4 @@ -/* +/* $Id: isamd-p.h,v 1.6 1999-08-25 18:09:23 heikki Exp $ * Copyright (c) 1995-1996, Index Data. * See the file LICENSE for details. * Heikki Levanto @@ -39,6 +39,14 @@ typedef struct ISAMD_file_s { int no_next; int no_prev; + int no_op_nodiff; /* existing blocks opened for reading without diffs */ + int no_op_intdiff; /* - with internal diffs */ + int no_op_extdiff; /* with separate diff blocks */ + int no_fbuilds; /* number of first-time builds */ + int no_appds; /* number of appends */ + int no_merges; /* number of merges done */ + int no_remerges; /* number of times more than one merge needed */ + char *alloc_buf; /* free-list handling (?) */ int alloc_entries_num; int alloc_entries_max; @@ -60,15 +68,16 @@ typedef struct ISAMD_DIFF_s *ISAMD_DIFF; struct ISAMD_PP_s { char *buf; /* buffer for read/write operations */ ISAMD_BLOCK_SIZE offset; /* position for next read/write */ - ISAMD_BLOCK_SIZE size; /* size of actual pointer data */ + ISAMD_BLOCK_SIZE size; /* size of actual data */ int cat; /* category of this block */ int pos; /* block number of this block */ int next; /* number of the next block */ int diffs; /* either block or offset (in head) of start of diffs */ + /* will not be used in the improved version! */ ISAMD is; - void *decodeClientData; + void *decodeClientData; /* delta-encoder's own data */ ISAMD_DIFF diffinfo; - char *diffbuf; /* buffer for the diff block, only when reading */ + char *diffbuf; /* buffer for the diff block */ int numKeys; }; @@ -96,7 +105,13 @@ void isamd_free_diffs(ISAMD_PP pp); /* * $Log: isamd-p.h,v $ - * Revision 1.4 1999-07-21 14:24:50 heikki + * Revision 1.6 1999-08-25 18:09:23 heikki + * Starting to optimize + * + * Revision 1.5 1999/08/20 12:25:58 heikki + * Statistics in isamd + * + * Revision 1.4 1999/07/21 14:24:50 heikki * isamd write and read functions ok, except when diff block full. * (merge not yet done) *