简体   繁体   English

GDBM与简单的JSON,INI或YAML配置文件

[英]GDBM vs a simple JSON, INI or YAML configuration file

I am studying about file based key-value databases such as GDBM and I can not see any real advantage versus using a configuration file. 我正在研究基于文件的键值数据库(例如GDBM) ,与使用配置文件相比,我看不出任何真正的优势。 Both technologies let you store in a file keys and values. 两种技术都可以让您在文件中存储键和值。

Is it the advantage of GDBM the performance, does GDBM parse the file faster? 是的GDBM的性能优势,确实GDBM解析文件快?

gdbm doesn't parse a file, it is permanent storage for key value pairs. gdbm不会解析文件,它是键值对的永久存储。 The storage on disc can be larger than your memory (although your indices probably will have to fit). 磁盘上的存储空间可能大于内存(尽管可能需要容纳索引)。

If you start with YAML, JSOON or INI files, you first have to parse that material and it all has to fit in memory. 如果从YAML,JSOON或INI文件开始,则首先必须解析该材料,并且所有这些都必须容纳在内存中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM