gpt4 book ai didi

java - 它们是 Java map 的任何体面的磁盘实现吗?

转载 作者:搜寻专家 更新时间:2023-10-30 19:54:48 25 4
gpt4 key购买 nike

我正在寻找 java.util.Map 的磁盘实现。没什么特别的,只是我可以指向一个目录或文件并让它以它选择的某种方式存储它的内容。有谁知道这样的事情吗?

最佳答案

你可以看看 Disk-Backed-map项目。

A library that implements a disk backed map in Java

A small library that provide a disk backed map implementation for storing large number of key value pairs. The map implementations (HashMap, HashTable) max out around 3-4Million keys/GB of memory for very simple key/value pairs and in most cases the limit is much lower. DiskBacked map on the other hand can store betweeen 16Million (64bit JVM) to 20Million(32bit JVM) keys/GB, regardless the size of the key/value pairs.

关于java - 它们是 Java map 的任何体面的磁盘实现吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4815633/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com