Skip to content

Floating-point write performance on JDK 21: JDK now (slightly) faster than "Schubfab"-optimized path #1351

@cowtowncoder

Description

@cowtowncoder

Something I found out when writing:

https://cowtowncoder.medium.com/jackson-2-18-fast-vector-reads-writes-6c2cf99c4594

is that while with JDKs 8 and 17 optimized floating-point writes (with StreamWriteFeature.USE_FAST_DOUBLE_WRITER) is about 2x as fast as JDK one, with JDK 21, JDK version is now slightly faster.

Code Jackson uses is from https://github.com/c4f7fcce9cb06515/Schubfach (as per notes on 3 classes in com.fasterxml.jackson.core.io.schubfach).

So it'd be good to consider what to do, if anything:

  1. Could there be newer version of "Schubfach" code implementation to use?
  2. Is there an explanation of why/how JDK 21 (and later presumably, could try) is so much faster than earlier versions (link would be nice to add)
  3. Should we document feature, suggesting it probably should not be enabled for JDKs 21 and above)

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.19Issues planned at earliest for 2.19performanceIssue related to performance problems or enhancements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy