парни подскажите, может кто решал проблему с производительностью
json.net. имеются 20+ кастомных jsonconverter. после замеров получается CanConvert очень долго обходит по всем конвертерам. кол-во самих конвертеров уменьшить пока не могу из-за особенности архитектуры.
Passing a JsonConverter to SerializeObject or DeserializeObject provides a simple way to completely change how an object is serialized. There is, however, a small amount of overhead; the CanConvert method is called for every value to check whether serialization should be handled by that JsonConverter.
There are a couple of ways to continue to use JsonConverters without any overhead. The simplest way is to specify the JsonConverter using the JsonConverterAttribute. This attribute tells the serializer to always use that converter when serializing and deserializing the type, without the check.