Uploaded image for project: 'eXo-JCR'
  1. eXo-JCR
  2. EXOJCR-420

Check if the ItemReferencePool of the SessionDataManager can be implemented with WeakValueHashMap instead of a WeakHashMap

    Details

      Description

      Up to now we use a WeakHashMap to store the items by id which means that the entry is removed when the String Object corresponding to the Id of the Item is garbage collected. It could be more convenient to use a WeakValueHashMap instead of a WeakHashMap, in order to remove the entry only when the value which means the item has been garbage collected. This will probably help to release quickly the Items that are no more used.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tolusha Anatoliy Bazko
                Reporter:
                nfilotto Nicolas Filotto
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours Original Estimate - 4 hours
                  4h
                  Remaining:
                  Time Spent - 2 days, 4 hours Remaining Estimate - 1 day, 2 hours
                  1d 2h
                  Logged:
                  Time Spent - 2 days, 4 hours Remaining Estimate - 1 day, 2 hours
                  2d 4h