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

QSystemLocale::query() performance issues on OS X (±100 times slower than on Windows)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 4.7.1
    • Core: Locales (i18n)
    • None
    • Mac OS X 10.6.6, Qt 4.7.1
    • macOS

    Description

      Test case: https://gist.github.com/707963

      This takes about 4 seconds to run on OS X, and only about 40 ms on Windows.

      Analysis: http://wimleers.com/blog/qcachinglocale-speeding-up-qsystemlocalequery-calls

      Solution: https://github.com/wimleers/QCachingLocale

      (Sorry for not rewriting everything nicely here, but that's a lot of duplication, and I think the analysis on my own websites is sufficiently clear and complete to understand the problem. If this annoys anybody, my sincere apologies.)

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            wimleers Wim Leers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes