Uploaded image for project: 'Google Code-in'
  1. Google Code-in
  2. GCI-259

Replace the synchronized class by an unsynchronized in ModuleFilterConfig

    XMLWordPrintable

Details

    Description

      Replace the synchronized class "Vector" by an unsynchronized one, "ArrayList" in the ModuleFilterConfig class.

       

      Background Information:

      Early classes of the Java API, such as Vector, Hashtable and StringBuffer, were synchronized to make them thread-safe. Unfortunately, synchronization has a big negative impact on performance, even when using these collections from a single thread.
      
      It is better to use their new unsynchronized replacements:
      
      ArrayList or LinkedList instead of Vector
      Deque instead of Stack
      HashMap instead of Hashtable
      StringBuilder instead of StringBuffer

      Gliffy Diagrams

        Attachments

          Activity

            People

              navareth Bartłomiej Rasztabiga
              dkayiwa Daniel Kayiwa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: