[Libwebsockets] lwsac

Per Bothner per at bothner.com
Tue Oct 16 00:35:06 CEST 2018


On 10/15/18 2:46 PM, Andy Green wrote:

> It replaces individual per-string or per-struct mallocs, and has the advantage when you're finished with it, you simply call an api to free the chunks, not the sub-allocations.
> 
> https://libwebsockets.org/git/libwebsockets/tree/lib/misc/lwsac

Us old-fart GNU guys are reminded of obstacks:

https://en.wikipedia.org/wiki/Obstack
https://www.gnu.org/software/libc/manual/html_node/Obstacks.html

I believe Stallman designed and implemented obstacks for gcc.
-- 
	--Per Bothner
per at bothner.com   http://per.bothner.com/


More information about the Libwebsockets mailing list