diff options
author | Not Zed <NotZed@HelixCode.com> | 2000-10-26 10:44:37 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-10-26 10:44:37 +0800 |
commit | f0a412665415e914a3739245c21c058c88425fe9 (patch) | |
tree | 2f86a891c99e7f5da595f9ac9eeb247fc3f498e4 /libibex/block.c | |
parent | 3fbd30fbd41291f016573be13cb31af67c9d4a28 (diff) | |
download | gsoc2013-evolution-f0a412665415e914a3739245c21c058c88425fe9.tar.gz gsoc2013-evolution-f0a412665415e914a3739245c21c058c88425fe9.tar.zst gsoc2013-evolution-f0a412665415e914a3739245c21c058c88425fe9.zip |
Another slight performance improvement, reads the list of words
faster when starting indexing of new data.
2000-10-26 Not Zed <NotZed@HelixCode.com>
* block.c (ibex_block_cache_open): Use IBEX_VERSION rather than
hardcoded version string.
* ibex_internal.h (IBEX_VERSION): Bumped version again. This time
I did change the index format.
* hash.c (struct _hashroot): Add a linked list of keys to the table.
(struct _hashblock): Added a next pointer as a block number.
(hash_insert): Link new key blocks into the key block list.
(struct _HASHCursor): Renamed block to key and added a block item.
(hash_cursor_next): Changed to go through the linked list of all
hash items rather than through each hash chain separately. >>
faster.
(ibex_hash_dump_rec): Remove a warning.
svn path=/trunk/; revision=6192
Diffstat (limited to 'libibex/block.c')
-rw-r--r-- | libibex/block.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libibex/block.c b/libibex/block.c index 52a79d27ae..3f637d4422 100644 --- a/libibex/block.c +++ b/libibex/block.c @@ -478,11 +478,11 @@ ibex_block_cache_open(const char *name, int flags, int mode) ibex_block_read_root(block_cache); if (block_cache->root.roof == 0 - || memcmp(block_cache->root.version, "ibx5", 4) + || memcmp(block_cache->root.version, IBEX_VERSION, 4) || ((block_cache->root.flags & IBEX_ROOT_SYNCF) == 0)) { (printf("Initialising superblock\n")); /* reset root data */ - memcpy(block_cache->root.version, "ibx5", 4); + memcpy(block_cache->root.version, IBEX_VERSION, 4); block_cache->root.roof = 1024; block_cache->root.free = 0; block_cache->root.words = 0; |