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. -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
