Windows中有内存虚拟文件API吗?

发布于 2024-10-04 03:16:50 字数 81 浏览 11 评论 0原文

我有一个模块通过其路径加载文件, 但我发现它很慢。 我想加快速度 Windows中有没有技术可以为模块创建虚拟内存文件?

非常感谢

I have a module load a file by its path,
However I find it is slow.
I want to accelerate it,
Is there any technology in Windows to create a virtual memory file for the module?

Many thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

岛徒 2024-10-11 03:16:51

我测试了 BoxedApp SDK

它很棒,但它不是免费的:)

I tested BoxedApp SDK.

It is awesome, but it is not free :)

无风消散 2024-10-11 03:16:51

我不完全确定您要问什么,但如果您只想创建一个位于 RAM 中的临时文件(如果可能的话),您可以使用 CreateFileFILE_ATTRIBUTE_TEMPORARY

I'm not entirely sure of what you're asking, but if you just want to create a temporary file that will live in RAM (if possible), you can use CreateFile with FILE_ATTRIBUTE_TEMPORARY.

屌丝范 2024-10-11 03:16:51

假设您正在谈论内存映射文件,是的,有相应的 API。在一个小小的答案中讨论的内容太多了,而且自从我使用以来已经很多年了,所以我什至不记得函数名称了。以下是我如何快速找到相关信息的方法:http://www.google。 com/search?q=内存+映射+文件+windows

然而,其他更简单的方法可能是“我发现它很慢”的答案。

缓慢的原因可能有很多。请发布一些代码。然后才能给出更好的答案。

欢呼&呵呵,,

Assuming you're talking about memory mapped file, yes there are APIs for that. It's too much to discuss in a little SO answer, and besides it's many many years since I used so I don't even recall the function names. Here's how I found info on that quickly: http://www.google.com/search?q=memory+mapped+file+windows.

However, other simpler means are probably the answer to "I find it is slow".

There can be many different reasons for slowness. Please post some code. Then better answers can be given.

Cheer & hth.,

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文