janwas
36cbf23c8e
previous zip.* split up into archive, zip and compression. add O(1) lookup via memento. add support for writing Zip archive. simplify IO by having compression module allow queuing input buffers. file: split up into file, file_Io, file_cache. add atom_fn that enables string comparison via pointer compare. (stores all filenames/paths in one place). add statistics gathering. file_cache: landlord algorithm for caching files as well as LRU block cache. file_io: aio code that splits transfers into blocks revamped and made into class. vfs: filelist/trace code moved into new vfs_optimizer. add caching logic to vfs_load. vfs_optimizer: will generate zip archive (to replace current archive builder script). not yet done vfs_tree: major cleanup - now has nice base class rather than union hackery. This was SVN commit r3420.
26 lines
522 B
C
26 lines
522 B
C
#ifndef VFS_OPTIMIZER_H__
|
|
#define VFS_OPTIMIZER_H__
|
|
|
|
extern void trace_enable(bool want_enabled);
|
|
extern void trace_add(const char* P_fn);
|
|
|
|
extern LibError trace_write_to_file(const char* trace_filename);
|
|
extern LibError trace_read_from_file(const char* trace_filename);
|
|
|
|
struct TraceEntry
|
|
{
|
|
double timestamp;
|
|
const char* atom_fn;
|
|
};
|
|
|
|
struct Trace
|
|
{
|
|
const TraceEntry* ents;
|
|
uint num_ents;
|
|
};
|
|
|
|
extern void trace_get(Trace* t);
|
|
extern void trace_shutdown();
|
|
|
|
#endif // #ifndef VFS_OPTIMIZER_H__
|