Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Improved Performance #11

@jenniferplusplus

Description

@jenniferplusplus

Currently, deserialization performance is not bad. Serialization, on the other hand, is at a level I would think of as barely tolerable. The biggest problem is that every Object to be serialized will need to create 20-ish JsonConverter<T> objects, and that's a fairly expensive action.

Ideally, each Object would only need a single converter. The basic process for that would be to create a custom converter class for Object, and have that handle the IList fields, rather than assigning them each an individual converter annotation. That was actually my first approach, but I ran into an issue with infinite recursion when deserializing. But I also made other changes since then, so it might not even be an issue anymore?

Either way, serializing a simple activity, which references a single actor and object, can easily take 150ms, which is entirely too long.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions