--- freem/src/global_bltin.h 2025/04/11 14:21:03 1.11 +++ freem/src/global_bltin.h 2025/04/11 16:23:18 1.12 @@ -1,5 +1,5 @@ /* - * $Id: global_bltin.h,v 1.11 2025/04/11 14:21:03 snw Exp $ + * $Id: global_bltin.h,v 1.12 2025/04/11 16:23:18 snw Exp $ * built-in global handler header * * @@ -24,6 +24,9 @@ * along with FreeM. If not, see . * * $Log: global_bltin.h,v $ + * Revision 1.12 2025/04/11 16:23:18 snw + * Avoid re-reading the same block consecutively when possible + * * Revision 1.11 2025/04/11 14:21:03 snw * Make all but one of the read/write calls in global_bltin use gbl_read_block or gbl_write_block * @@ -92,13 +95,20 @@ typedef struct global_handle { global_header header; long age; + long last_read_time; + short opened; short locked; unsigned long last_block; + short have_cached_block; + unsigned long cached_block_num; + + char *last_block_accessed; unsigned long use_count; /* how many times has it been accessed? */ unsigned long read_ops; unsigned long write_ops; + unsigned long memory_reads; unsigned long splits; unsigned long cache_misses; unsigned long cache_hits;