Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3443

Optimize hunspell dictionary loading with multiple cores

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The Hunspell dictionary is actually loaded into memory. Each core using hunspell loads its own dictionary, no matter if all the cores are using the same dictionary files. As a result, the same dictionary is loaded into memory multiple times, once for each core. I think we should share those dictionaries between all cores in order to optimize the memory usage. In fact, let's say a dictionary takes 20MB into memory (this is what I detected), if you have 20 cores you are going to use 400MB only for dictionaries, which doesn't seem a good idea to me.

      Attachments

        1. SOLR-3443.patch
          7 kB
          Gus Heck
        2. Screen Shot 2015-11-29 at 9.52.06 AM.png
          61 kB
          Gus Heck

        Activity

          People

            Unassigned Unassigned
            lucacavanna Luca Cavanna
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: