Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5892

Implement Cache on getTreeList in DBTreeListClass

    XMLWordPrintable

Details

    • Unknown

    Description

      The following function can be called a lot in livetables for TreeList fields. The Map that we pass to it is retrieved from cache but the result of getTreeList is not and it can be time consuming to generate the data from getTreeList which has no reason to change.

      protected List<ListItem> getTreeList(Map<String, List<ListItem>> treemap, Map<String, ListItem> map,
      XWikiContext context)

      { List<ListItem> list = new ArrayList<ListItem>(); addToTreeList(list, treemap, map, "", context); return list; }

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            ludovic Ludovic Dubost
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: