Files
OpenRA/OpenRA.Mods.Cnc/FileSystem
RoosterDragon be04d232c0 Avoid some allocations on the large object heap during loading.
- In MixFile, the Distinct call doesn't presize the HashSet it uses internally. As we know we will enumerate all results, create the HashSet ourselves so that is it presized correctly.
- In ObjectCreator, stream the assembly when hashing rather than reading all bytes into memory.

These changes avoid some allocations on the large object heap, in turn this means the GC can avoid performing unnecessary Gen 2 collections just to clear down the LOH.
2023-07-16 23:21:20 +02:00
..
2023-06-06 11:51:47 +03:00
2023-04-08 16:51:51 +03:00
2023-04-08 16:51:51 +03:00
2023-04-08 16:51:51 +03:00