Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-110824

Pack QLocale's string-data tables more compactly

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.5
    • Core: Locales (i18n)
    • None
    • All
    • 13

    Description

      In qlocale_data_p.h there are diverse string tables referenced by the QLocaleData that describes locales; various fields in these structures are recorded by an index and length of a substring of the table, at which to find the string data. At present the strings for the string tables are generated during output of the locale_data table (the string tables are output later) by: when about to output a string, search for it in the string table's string; if present as a substring, return index and length; otherwise append and return index and offset.

      If we made a first pass, before generating locale_data, over the strings, collecting them up into a set, we could then compile each of those sets into a minimal string that has every string in its set as a sub-string. This would result in smaller string tables (and thus indices into them).

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Eddy Edward Welbourne
              Eddy Edward Welbourne
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes