我已经在早期的Perl项目中使用过GDBM和Berkeley DB / DB_File,但是我应该将它们用于新的Perl项目吗?不同Perl DBM实现的优点和缺点是什么?
(相关:像传统DBM那样,像DBM :: Deep或KyotoCabinet这样的工具太慢/沉重,当您需要的是二进制/文本数据的透明哈希时?)
提前感谢任何建议.
解决方法
AnyDBM_File模块具有各种dbms的不错图表.我不知道这是多么过时.
odbm ndbm sdbm gdbm bsd-db ---- ---- ---- ---- ------ Linkage comes w/ perl yes yes yes yes yes Src comes w/ perl no no yes no no Comes w/ many unix os yes yes[0] no no no Builds ok on !unix ? ? yes yes ? Code Size ? ? small big big Database Size ? ? small big? ok[1] Speed ? ? slow ok fast FTPable no no yes yes yes Easy to build N/A N/A yes yes ok[2] Size limits 1k 4k 1k[3] none none Byte-order independent no no no no yes Licensing restrictions ? ? no yes no [0] on mixed universe machines,may be in the bsd compat library,which is often shunned. [1] Can be trimmed if you compile for one access method. [2] See DB_File. Requires symbolic links. [3] By default,but can be redefined.