Origin: I compiled a small program a few days ago. I want to put a text file into an array. Although I have read all the files, I cannot search the back part of the file due to an error, after a few days, I found that the memory was insufficient during the operation, so I changed the array to dynamic application, and then OK. therefore, we have to consider the memory usage and running efficiency. I saw the Windows Mobile SDK update document on Microsoft's msdn a few days ago (even though I saw updates on Microsoft's msdn in the early August S, I only saw some updates at that time ), I found the following article and translated it into Chinese:
(Please advise me if the translation is incorrect)
Best practices for managing storage in a Windows Mobile-based application
Storage hardware and overall system design have a great impact on storage performance. currently, the Pocket PC device uses a ram-based file system, while the smartphone device uses a permanent storage file system based on flash memory (falsh. for a deeper understanding of the storage hardware technology, see:
System memory management in Windows CE. net
Storage hardware performance considerations
The following table compares the operating performance of a flash-based Permanent storage file system with a ram-based file system:
Operation |
Based on flash |
Based on Ram |
Partial read |
Slow |
Fast |
Partial write |
Very slow |
Fast |
Network read |
Fast |
Slow |
Network write |
Fast |
Slow |
Battery backup hardware? |
No |
Yes |
Permanent registry? |
Better than Ram-based |
Yes |
Optimal storage software performance policies
Follow the best practices below to help minimize any performance impact, so your application must: