maybe i got a bug

monarch_dodra monarchdodra at gmail.com
Fri Feb 1 06:26:31 PST 2013


On Friday, 1 February 2013 at 09:09:10 UTC, bioinfornatics wrote:
> As i use a memory mapped file i won't copy my struct for able to
> loop as i do not want map the file twice that is rather a big
> problem for a big file this a perf issue. memory mapped file is
> used to read fastly a file so is a nonsense

Oh yeah: MmFile is a class, so copying it is free. The problem 
though is that it is shallow, so modying a struct copy will 
(partially) modify the original struct.


More information about the Digitalmars-d-learn mailing list