shakilsiraj / json-object-mapper

A TypeScript library to serialize and deserialize object graph from/to JSON in a fast and non-recursive way
MIT License
58 stars 18 forks source link

Slow deserialization with complex type and large collection #59

Closed dgio-git closed 2 years ago

dgio-git commented 3 years ago

We detected a latency when we deserialize a large collection of JSON objects with a complex type class (our classes have most properties and subclasses and we get a large class definition). This is caused by the regex to extract the class name in class definition file. So, we replaced it and in first, we try to get the classname in instance object if exists...

shakilsiraj commented 2 years ago

Merged into release/1.7 branch. commit a14560393040fddb7b12dd996305cb529c75f333.