applejag / Newtonsoft.Json-for-Unity

Newtonsoft.Json (Json.NET) 10.0.3, 11.0.2, 12.0.3, & 13.0.1 for Unity IL2CPP builds, available via Unity Package Manager
https://github.com/jilleJr/Newtonsoft.Json-for-Unity
MIT License
1.15k stars 128 forks source link

How big is this package - I have a webgl and need to save space where possible. #149

Open McSwan opened 1 year ago

McSwan commented 1 year ago
applejag commented 1 year ago

Hello @McSwan. Good question, I haven't really considered it.

The Newtonsoft.Json.dll binary is 615 KB large, so the impact on the final build's size would probably be around that size. Although, IL2CPP (the compiler that's used in WebGL builds) does strip away all debug symbols, so it might be smaller.

Could you try build your project with and without this package, and compare the sizes of the artifacts? Now I'm curious

McSwan commented 1 year ago

Thanks for the info - if I get a some time I'll run a test.