Details

    • Estimated Difficulty:
      Low

      Description

      The goal of this task is to identify all the places in the code from kernel to jcr where we have a primitive collections (not sorted as it is not supported so LinkedHashMap, LinkedHashSet, TreeMap or TreeSet must be ignored) and replace them with the corresponding Trove Collections as it is supposed to be faster and less memory consuming than the java.util collections.

      See below all the places that I have identified in the code:

      jcr.core

      • DBRestrore -> columnType -> List<Integer>
      • ChildAxisQuery$ChildAxisScorer -> docIds -> List<Integer>
      • ChildAxisQuery$SimpleChildrenCalculator -> uuids -> Map<Integer, String>
      • ParentAxisQuery$ParentAxisScorer -> scores -> Map<Integer, Float>
      • QueryConstants -> OPERATION_NAMES -> Map<Integer, String>
      • QueryConstants -> TYPE_NAMES -> Map<Integer, String>
      • SysViewWorkspaceInitializer$SVNodeData -> childNodesMap -> HashMap<InternalQName, Integer>
      • JDBCWorkspaceDataContainer.getDataRestorer(DataRestoreContext context) -> convertColumnIndex -> Set<Integer>
      • QueryHitsQuery$QueryHitsQueryScorer -> scores -> Map<Integer, Float>
      • CachingMultiIndexReader -> readersByCreationTick -> Map<Long, OffsetReader>
      • Recovery -> losers -> Set<Long>
      • Recovery.run() -> transactionIds -> Set<Long>

      jcr.ext

      • BackupChainLog.getJobEntryStates() -> infos -> HashMap<Integer, JobEntryInfo>

      jcr.webdav

      • WebDavConst -> statusDescriptions -> Hashtable<Integer, String>

      kernel.container

      • ManagedMethodMetaData -> parameters -> Map<Integer, ManagedMethodParameterMetaData>

      ws.commons

      • URI -> defaultPorts -> Hashtable<String, Integer>

      ws.rest.core

      • UriTemplateParser -> groupIndexes -> List<Integer>

        Gliffy Diagrams

          Attachments

          1. Call_Tree_Sun.html
            23 kB
          2. Call_Tree_Trove.html
            20 kB
          3. memory-usage.jpeg
            memory-usage.jpeg
            80 kB
          4. memory-usage-TESTUKR-601.jpg
            memory-usage-TESTUKR-601.jpg
            88 kB
          5. swap-usage.jpeg
            swap-usage.jpeg
            92 kB

            Activity

              People

              • Assignee:
                dkuleshov Dmitry Kuleshov
                Reporter:
                julien_viet Julien Viet
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

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