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

getTranslationList does a useless list copy

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 1.1 M3
    • 1.0 RC1
    • Storage
    • None
    • tested on Linux x86, on XWiki revision revision 2948 running with MySQL.
    • patch, getTranslationList, performance

    Description

      In XWikiHibernateStore.getTranslationList, the list of translations is copied to a new list before been returned.
      This seems useless. Because getTranslationList is called for each viewed page, this is a waste of performance.

      See attached patch.

      Attachments

        1. patch
          1 kB
          Pablo Oliveira

        Activity

          People

            vmassol Vincent Massol
            oliveira Pablo Oliveira
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: