[Lazarus] Fast file reading using file cache
Michael Van Canneyt
michael at freepascal.org
Thu Nov 19 16:26:57 CET 2015
On Thu, 19 Nov 2015, Aradeonas wrote:
> Hi,
>
> For a task I need fast file reading using OS cache system (Im using
> Windows) so if I read a file repeatedly it get less memory but my
> problem is file is large so I cant copy it to memory. Is there a way for
> it that be multi platform or at least works on Windows?
You can try memory mapping:
https://msdn.microsoft.com/en-us/library/aa366556%28VS.85%29.aspx
The same exists on Unices, using mmap().
Michael.
More information about the Lazarus
mailing list