Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-1549

Two times speed increase of language profile distance calculation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8
    • languageidentifier
    • None

    Description

      The distance calculation for language profiles creates a Set of Strings with each call and performs hashtable lookups for all those Strings. This patch creates and caches compact structures that are iterated sequentially. The result is a factor 2 speed up (see the performance test in LanguageIdentifierTest).

      Attachments

        Activity

          People

            chrismattmann Chris A. Mattmann
            toke Toke Eskildsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: