-
-
Notifications
You must be signed in to change notification settings - Fork 180
Closed
Labels
Description
I am considering enabling the StrictNullChecks
feature in production. However, In the Javadoc I can see following statement:
Enabling it protects against this but has significant performance impact.
jackson-module-kotlin/src/main/kotlin/com/fasterxml/jackson/module/kotlin/KotlinFeature.kt
Lines 38 to 45 in 11bfe2f
/** | |
* This feature represents whether to check deserialized collections. | |
* | |
* With this disabled, the default, collections which are typed to disallow null members (e.g. `List<String>`) | |
* may contain null values after deserialization. | |
* Enabling it protects against this but has significant performance impact. | |
*/ | |
StrictNullChecks(enabledByDefault = false); |
Are there any benchmarks to check the performance against the enabled and disabled feature? If not, would you like me to contribute the microbenchmark suite by creating a dedicated pull request?
I found that @k163377 used jmh to give you some numbers to prove significant improvement in deserialization speed #439 but those tests are not part of the jackson-module-kotlin project.
neetkee