mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00
refactor(arena): use a shared block freelist
This is both simpler in client code and more effective (always reuse block hottest in cache)
This commit is contained in:
@@ -52,7 +52,7 @@ typedef struct {
|
||||
size_t pos, size;
|
||||
} Arena;
|
||||
|
||||
// inits an empty arena. use arena_start() to actually allocate space!
|
||||
// inits an empty arena.
|
||||
#define ARENA_EMPTY { .cur_blk = NULL, .pos = 0, .size = 0 }
|
||||
|
||||
#define kv_fixsize_arena(a, v, s) \
|
||||
|
Reference in New Issue
Block a user