Cross-platform file mapping
Cross-platform file mapping
File mapping is a great way to copy data from disk to disk without having to first load it into memory. This is an excellent feature of the Windows API and I believe Linux support it as well. It would be great to see a cross-platform solution in PureBasic for this.
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
+1
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
they improved the file operations by adding a read/write cache to v4.00, so i doubt they are going to rewrite the whole set again, sometime soon. the lib is very fast now (imho) and the question is, how much faster is it going to be, when they switch to file mapping?
c ya,
nco2k
c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
Re: Cross-platform file mapping
Can't you just use CopyFile() for that?Mistrel wrote:File mapping is a great way to copy data from disk to disk without having to first load it into memory. This is an excellent feature of the Windows API and I believe Linux support it as well. It would be great to see a cross-platform solution in PureBasic for this.
Re: Cross-platform file mapping
CopyFile() isn't useful if I want to copy only a portion of the file.Trond wrote:Can't you just use CopyFile() for that?