(KeepIt)简单愚蠢的数据库
KISSDB是一个最简单的key/value存储,使用纯C开发,只适用标准字符串和FILEIO函数。
特性:
Tiny,compilesto~4konanx86_64LinuxsystemSmallmemoryfootprint(onlycacheshashtables)Veryspace-efficient(ondisk)ifsmallhashtablesareusedMakesadecentefforttoberobustonpowerlossPrettyrespectablyfast,especiallygivenitssimplicity64-bit,filesizelimitis2^64bytesPortstoanythingwithaCcompilerandstdlib/stdioPublicdomain限制:
Fixed-sizekeysandvalues,mustrecreateandcopytochangeanyinitsizeparameterAdd/updateonly,nodeleteIterationissupportedbutkeyorderisundefinedNosearchforsubsetsofkeys/valuesNoindexesNotransactionsNospecialrecoveryfeaturesifadatabasegetscorruptedNobuilt-inthread-safety(guarditwithamutexinMTcode)Nobuilt-incachingofdata(onlyhashtablesarecachedforlookupspeed)Noendian-awareness(currently),sobig-endianDBswon'treadonlittle-endianmachines
评论