From Dennis Schön to ~skeeto/public-inbox
Hi again, I'm wondering how you decide between this array and a linked-list. The memory waste seems to be quite significant and an arena based linked-list should be much more efficient? Or could we use some realloc() method like I showed in my previous message? Then pushing new elements to an array could just grow the existing arena space if nothing else was allocated in between? Thanks again, Dennis -- Dennis Schön https://www.dennis-schoen.de
From Dennis Schön to ~skeeto/public-inbox
Hi, I'm really enjoying the post about Arena based data structures. Great work - thanks! I came up with this realloc method that I use for arena backed strings in a streaming context. Can you have a quick look if it makes sense? void *realloc(Arena *a, void *ptr, size oldsz, size newsz, size align) { if (newsz <= oldsz) { return ptr; } if (a->beg - oldsz == ptr) { // pointer to realloc is the last element, we can simply grow it alloc(a, newsz - oldsz, align, 1, ARENA_NO_FLAGS);
From Dennis Schön to ~delthas-alt/senpai-dev
Hi, I don't have a patch but I quickly wanted to say thanks for developing senpai! I've recently gotten back into IRC and first tried to setup irssi, as this was the client I remember using quite some years ago. ;-) However setting this up with chat.sr.ht and working like I wanted was quite difficult. When I looked for alternatives I found senpai on the soju clients list. And the experience was great: smooth setup and working/looking exactly like I wanted. Great Job! Cheers, Dennis -- Dennis Schön https://www.dennis-schoen.de
From Dennis Schön to ~delthas/senpai-dev
Hi, I don't have a patch but I quickly wanted to say thanks for developing senpai! I've recently gotten back into IRC and first tried to setup irssi, as this was the client I remember using quite some years ago. ;-) However setting this up with chat.sr.ht and working like I wanted was quite difficult. When I looked for alternatives I found senpai on the soju clients list. And the experience was great: smooth setup and working/looking exactly like I wanted. Great Job! Cheers, Dennis -- Dennis Schön https://www.dennis-schoen.de