use hashmap in constants buffer to speed up translation time with large files
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "../dynamic_array/darray.h"
|
||||
#include "../memory.h"
|
||||
#include "../parser/parser.h"
|
||||
#include "../hashmap/hashmap.h"
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -14,6 +15,7 @@ typedef struct {
|
||||
void *data;
|
||||
size_t capacity;
|
||||
size_t size;
|
||||
struct hashmap * hashmap;
|
||||
} ConstantArena;
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user