> > allocating 40MB of static data seems a bit excessive. > > 1. Your exectuable is probably going to be 40MB (not sure) > 2. allocating on the heap is probably going to be faster than this, as the > OS would not have to read 40MB of static data from the disk. > > Is there a reason why you want to do it this way instead of: > > Struct[] structs; > static this > { > structs = new Struct[1_000_000]; > } > > -Steve My executable is only 177KB
- long compile time 2.023 (few lines of code) Saaa
- Re: long compile time 2.023 (few lines of code) Denis Koroskin
- Re: long compile time 2.023 (few lines of code) Steven Schveighoffer
- Re: long compile time 2.023 (few lines of co... Saaa
- Re: long compile time 2.023 (few lines of code) torhu