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

Multi-Threaded program - slow qTzSet calls in QDateTime

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.10.1
    • Core: Date/Time
    • None
    • All

      Hi,

      I use QOCI to request data from Oracle. When i fetch a much data (4000 rows), Qt take 40% of time in futex . 

      I investiguated and i see in qtcode/qdatetime.cpp, qTzSet() is called every row fetched (because i have a date type column) and just after localtime_r is called.

      qTzSet is thread safe. Qt have a mutex lock and glibc also has => it's bad performance for many calls and many concurrents threads..

      Is not necessary for me to refresh timezone every row. I export TZ environment variable before start program.

      It's possible to envisage a variable macro to configure if we want refresh timezone or no when we are in multithread environnement ?

       

      Thx.

       

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

            Eddy Edward Welbourne
            abde13 abdennour boutrig
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes