mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-08 01:10:23 +00:00
[automaton] pool needn't be so large, methinks
This commit is contained in:
parent
57e5981b9d
commit
57179a1c38
@ -55,7 +55,7 @@ uint32_t esctrie_id(const esctrie* e){
|
||||
static inline unsigned
|
||||
create_esctrie_node(automaton* a, int special){
|
||||
if(a->poolused == a->poolsize){
|
||||
unsigned newsize = a->poolsize ? a->poolsize * 2 : 2048;
|
||||
unsigned newsize = a->poolsize ? a->poolsize * 2 : 512;
|
||||
esctrie* tmp = realloc(a->nodepool, sizeof(*a->nodepool) * newsize);
|
||||
if(tmp == NULL){
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user