improve performance massively from 0.9 seconds to 0.38 seconds :)
This commit is contained in:
@@ -51,10 +51,6 @@ void arena_resize(ConstantArena *arena, size_t new_size) {
|
||||
arena->capacity = new_capacity;
|
||||
}
|
||||
|
||||
void *arena_get(ConstantArena *arena, size_t offset) {
|
||||
return arena->data + offset;
|
||||
}
|
||||
|
||||
size_t arena_push(ConstantArena *arena, const void *data, size_t length) {
|
||||
uint64_t hash = siphash64_bytes(data, length, siphash_key);
|
||||
|
||||
|
||||
@@ -40,8 +40,6 @@ typedef enum {
|
||||
|
||||
void arena_resize(ConstantArena *arena, size_t new_size);
|
||||
|
||||
void *arena_get(ConstantArena *arena, size_t offset);
|
||||
|
||||
size_t arena_push(ConstantArena *arena, const void *data, size_t length);
|
||||
|
||||
size_t push_instruction_byte(Translated *translator, uint8_t byte);
|
||||
|
||||
Reference in New Issue
Block a user