This post originated from an RSS feed registered with Java Buzz
by News Manager.
Original Post: December 2014 New Java Performance Tips
Feed Title: JavaPerformanceTuning.com
Feed URL: http://www.javaperformancetuning.com/newsletters.rss
Feed Description: JavaPerformanceTuning.com lists all the information and resources available for Java performance tuning
The latest Java performance tips from around the web, like "final fields provide for thread-safety for primitives and also object references as long as the object referred to is immutable. If the referred object is mutable, you can still get thread-safe access and update as long as the mutability is handled in a thread-safe way (eg the example StringInterner class can have threads overwrite the internal data structure in a non-deterministic way, but the result of any call will still always produce a coherent object adhering to the class API. Specifically, the 'interned' String could be interned several times as different objects in different threads but this doesn't violate the class API)."