Giter Club home page Giter Club logo

Comments (11)

borkdude avatar borkdude commented on May 23, 2024 1

Anyway, getting rid of ThreadLocal would be beneficial for virtual threads anyway:

Virtual threads support thread-local variables (ThreadLocal) and inheritable thread-local variables (InheritableThreadLocal), just like platform threads, so they can run existing code that uses thread locals. However, because virtual threads can be very numerous, use thread locals only after careful consideration.

https://openjdk.org/jeps/444

from http-kit.

ptaoussanis avatar ptaoussanis commented on May 23, 2024 1

@borkdude

Have just pushed beta2 👍
See here for the benchmarking info.

Improvements to the bench suite, and/or additional results very welcome!

from http-kit.

ptaoussanis avatar ptaoussanis commented on May 23, 2024

@borkdude Hi Michiel, thanks for pinging about this!

Before we select a solution, do you have any idea what the underlying problem might be?

from http-kit.

borkdude avatar borkdude commented on May 23, 2024

I suspect it's an interplay between ThreadLocal and virtual threads, but I'm not exactly sure. My hunch would be that the SimpleDataFormat class isn't as well tested as the newer java.time API with virtual threads.

(I updated the proposed Java solution)

from http-kit.

ptaoussanis avatar ptaoussanis commented on May 23, 2024

PR welcome, thanks Michiel 👍

from http-kit.

borkdude avatar borkdude commented on May 23, 2024

There we go: #544

from http-kit.

ptaoussanis avatar ptaoussanis commented on May 23, 2024

Thanks! Busy working on http-kit, will get it merged in the next couple days 👍

from http-kit.

ptaoussanis avatar ptaoussanis commented on May 23, 2024

Merged manually, thanks Michiel!

from http-kit.

borkdude avatar borkdude commented on May 23, 2024

Cool, as soon as you have a new beta, I'll bump in babashka since I want to publish some benchmarks which should be reproducible by others :)

from http-kit.

ptaoussanis avatar ptaoussanis commented on May 23, 2024

👍 Just a heads-up that the next release will also include a full benchmark suite.

from http-kit.

borkdude avatar borkdude commented on May 23, 2024

Cool :)

from http-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.