❔ Optimize Serializing of the List
Currently I do it like this, but is very slow.
The List
var json = JsonConvert.SerializeObject(allUsers, Formatting.None, new JsonSerializerSettings() { ReferenceLoopHandling = ReferenceLoopHandling.Ignore });The List
allUsers is a list of UserPrincipal and have around 1000 elements. The serialization takes are 90 seconds, which I think its a bit too much for a list like that. Is there any way I can optimize that?