mirror of
https://github.com/facebook/zstd.git
synced 2025-11-30 11:21:33 +03:00
Alloc Tables Separately
This commit is contained in:
@@ -255,6 +255,9 @@ typedef enum {
|
||||
*
|
||||
* Workspace Layout:
|
||||
*
|
||||
* [ ... workspace ... ]
|
||||
* [objects][tables ... ->] free space [<- ... aligned][<- ... buffers]
|
||||
*
|
||||
* In order to accomplish this, the various objects that live in the workspace
|
||||
* are divided into the following categories:
|
||||
*
|
||||
@@ -287,18 +290,11 @@ typedef struct {
|
||||
|
||||
void* objectEnd;
|
||||
|
||||
// // void* tableZoneStart;
|
||||
// void* tableAllocStart;
|
||||
// void* tableAllocEnd;
|
||||
// // void* tableZoneEnd;
|
||||
void* tableEnd;
|
||||
|
||||
// void* seqEnd;
|
||||
void* allocStart;
|
||||
|
||||
// void* bufferBegin;
|
||||
|
||||
void* allocEnd;
|
||||
int allocFailed;
|
||||
|
||||
int workspaceOversizedDuration;
|
||||
ZSTD_workspace_alloc_phase_e phase;
|
||||
} ZSTD_CCtx_workspace;
|
||||
|
||||
Reference in New Issue
Block a user