Skip to content

Enable SingletonSupport by default #871

Closed

Description

@k163377

Currently kotlin-module creates a new instance by default when deserializing object.

This problem can be solved by enabling KotlinFeature.SingletonSupport.
On the other hand, to avoid compromising the integrity of Kotlin, this option should be enabled by default.

Barring any strong objections, I intend to make the above change in Jackson 3.0 (although it should be confirmed that there are no performance issues beforehand).
I would also like to remove the SingletonSupport option as well, as there seems to be no advantage to choosing this behavior.

Please vote with 👍 or 👎.

Activity

  1. added
    3.x
    on Dec 15, 2024
  2. k163377 commented on Feb 15, 2025

    @k163377
    ContributorAuthor

    Benchmarking was performed and confirmed that throughput remained above 99% when enabled.
    https://github.com/k163377/singleton-support-benchmark

  3. k163377 commented on Mar 22, 2025

    @k163377
    ContributorAuthor

    The change have been reflected (sorry for not making it to RC1 in time).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.x

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions