Quick, easy serialization of objects

I am looking for the fastest serialization method tiles in the 2D world. Let's say the world is big, and since the computer cannot process so many blocks loaded at the same time, I divided the world into pieces. BinaryFormatter seems to be slow. Is there a faster method how to serialize a piece object?

WChunk Object Structure

 public class WChunk { public int ChunkX; public int ChunkY; public SortedDictionary<WPoint, WTile> Tiles; } 

WTile Object Structure

 public class WTile { WPoint Location; int Data; } 
+6
source share

Source: https://habr.com/ru/post/920841/


All Articles