You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/AboutValueClassSupport.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,14 @@ The same policy applies to deserialization.
43
43
This policy was decided with reference to the behavior as of `jackson-module-kotlin 2.14.1` and [kotlinx-serialization](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/value-classes.md#serializable-value-classes).
44
44
However, these are just basic policies, and the behavior can be overridden with `JsonSerializer` or `JsonDeserializer`.
45
45
46
+
### Serialization performance improvement using `JsonUnbox`
47
+
In `jackson-module-kogera`, the `jackson` functionality is modified by reflection so that the `Jackson` functionality works for `value class` as well.
48
+
These are executed on all calls.
49
+
On the other hand, if only `unbox` is required, these are extra overheads that can significantly impair serialization performance.
50
+
51
+
Therefore, `jackson-module-kogera` provides the `JsonUnbox` annotation.
52
+
When this annotation is provided, serialization performance is improved because only calls to `getter` that is `unboxed` will be made.
53
+
46
54
## For features that would not be supported
47
55
I do not intend to support features that require significant effort to support and that can be circumvented by user definition.
0 commit comments