Using a ThreadLocal is (usually) a code smell. It's optimized / supposed to be used with just a few threads, not millions.
Using a ThreadLocal is (usually) a code smell. It's optimized / supposed to be used with just a few threads, not millions.