mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Rewrite ZipOS
This reduces the virtual memory usage of Emacs for me by 30%. We now have a simpler implementation that uses read(), rather mmap()ing the whole executable.
This commit is contained in:
parent
ff77f2a6af
commit
b01282e23e
21 changed files with 408 additions and 421 deletions
|
@ -26,6 +26,12 @@ struct SymbolTable {
|
|||
struct Symbol symbols[]; /* sorted and non-overlapping intervals */
|
||||
};
|
||||
|
||||
struct SymbolTableLoader {
|
||||
_Atomic(unsigned) once;
|
||||
struct SymbolTable *st;
|
||||
};
|
||||
|
||||
extern struct SymbolTableLoader __symtab;
|
||||
struct SymbolTable *GetSymbolTable(void);
|
||||
const char *FindComBinary(void);
|
||||
const char *FindDebugBinary(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue