Fwd: Ziplists. Usefull for readonly tables and embedded processors

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fwd: Ziplists. Usefull for readonly tables and embedded processors

Glenn edgar
---------- Forwarded message ----------
From: "Glenn Edgar" <[hidden email]>
Date: Sep 17, 2016 22:30
Subject: Ziplists. Usefull for readonly tables and embedded processors
To: "Lua list" <[hidden email]>
Cc:

Redis uses ziplists to store small hashes and lists.  Reason is that it save memory with link list pointers and heap overhead pointers.

Ziplists may be usefull for storing readonly data structures as the zip list would be a continuos chunk of memory.  The ziplist could be in flash or loaded from a file.

My main motivation is in the area of small micro controllers with limited ram but much more flash.  For readonly and small objects, the ziplist may extend lua's effectiveness in this area.