Quote from: notfood on February 08, 2019, 03:28:01 PM
Here is another way that halves loading times dramaticaly. Caching the Assembly lookup:
https://github.com/Zetrith/Multiplayer/blob/master/Source/Client/Optimizations.cs#L98-L114
Creadit to Zetrith for finding it.
Basically, RimWorld does reflection every time it finds a type in XML. The more XML custom types the more reflection and reflection is slow. All mods use it. This patch makes it so there is a cache lookup before returing the type.
Many report 2-4 times faster loading.
I can confirm that my loading times drastically decrease with this, however, I've found that my world generation junks up pretty badly with my other 200 mods. Is there possibly a way to yank out that code and make it a mod in of itself for the purpose of self caching?