On thing I can see right away is to get rid of the synchronization, as well as immediately initializing the singleton object (use a static initializer block, or just initialize it when you declare...
Type: Posts; User: helloworld922
On thing I can see right away is to get rid of the synchronization, as well as immediately initializing the singleton object (use a static initializer block, or just initialize it when you declare...
If you're not modifying the singleton (either externally or internally) then theoretically every thread can access the singleton mutually with no negative effects.
If you're able to partition the...