gpt4 book ai didi

Java:已编译内容的 HashMap

转载 作者:行者123 更新时间:2023-11-29 05:49:29 25 4
gpt4 key购买 nike

我希望在字节码中实现一个包含其内容的 HashMap。这类似于我对内容进行序列化然后将其读入。但根据我的经验,序列化仅适用于将其保存到文件然后将其读入,我希望此实现比这更快。

最佳答案

But in my experience serialization only works with saving it to a file and then reading it in, I would want this implementation to be faster than that.

序列化适用于。具体来说,ObjectOutputStream可以包装任何 OutputStream .如果你想执行内存序列化,你可以使用 ByteArrayOutputStream在这里。

输入端类似。

关于Java:已编译内容的 HashMap ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14478397/

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