Search:

Type: Posts; User: helloworld922

Search: Search took 0.12 seconds.

  1. Replies
    4
    Views
    2,430

    Re: Optimizing Singleton Design Pattern

    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...
  2. Replies
    4
    Views
    2,430

    Re: Optimizing Singleton Design Pattern

    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...
Results 1 to 2 of 2