简体   繁体   English

Windows中是否有任何内存虚拟文件API?

[英]Is there any memory virtual file API in 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? 我想加快速度,Windows中是否有任何技术可以为模块创建虚拟内存文件?

Many thanks 非常感谢

I tested BoxedApp SDK . 我测试了BoxedApp SDK

It is awesome, but it is not free :) 它很棒,但是不是免费的:)

我不完全知道你是问什么的,但如果你只是想创建一个将生活在RAM(如果可能)的临时文件,可以使用CreateFileFILE_ATTRIBUTE_TEMPORARY

Assuming you're talking about memory mapped file, yes there are APIs for that. 假设您在谈论内存映射文件,是的,有相应的API。 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. 在一个SO的小答案中讨论太多了,而且距我使用已经有很多年了,所以我什至不记得函数名。 Here's how I found info on that quickly: http://www.google.com/search?q=memory+mapped+file+windows . 这是我快速找到有关信息的方法: 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., 干杯,

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

相关问题 什么时候使用虚拟内存(Windows)? - when will virtual memory be used (windows)? Windows虚拟内存和内核模式 - Windows virtual memory and kernel mode 如何在Windows通用文件对话框中显示API填充的虚拟文件夹 - How to display an API populated virtual folder in Windows Common File Dialogs Windows上的大量连续虚拟内存分配 - Large continuous virtual memory allocation on Windows Gnu make Windows *虚拟 memory 耗尽* - Gnu make Windows *virtual memory exhausted* 如何在没有 WSL 或任何虚拟 linux 和 clang 的情况下将 a.cpp 文件编译为 ELF 二进制文件? - How can I compile a .cpp file to ELF binary in windows WITHOUT WSL or any virtual linux, with clang? 在虚拟地址空间中使用内存映射文件 - use of memory mapped file in virtual address space 有没有办法查看每个线程的进程的虚拟内存usgae? - Is there any way to see virtual memory usgae of a process per thread? 一个进程可以从它的虚拟内存中的任何地址读/写吗? - Can a process read/write at any address from it's virtual memory? Windows 32位MFC应用程序在虚拟内存中的地址。 - Adresses in virtual memory for Windows 32 bit mfc application.
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM