Optimization: Assuming that the index is sorted, I guess an index search can bail out as soon as target value has been found?

This commit is contained in:
leecher1337
2017-12-03 23:25:35 +01:00
parent 4edb48ed17
commit c81d35f2ea
2 changed files with 3 additions and 1 deletions

View File

@@ -348,6 +348,7 @@ typedef struct {
int start_pos;
int offset;
int len;
int rc;
guint16 idx_starts[2000];
unsigned char cache_value[256];
} MdbIndexPage;