~/talk

Optimizing Qt Application

Talkat Qt World Summit 2015 · 2015-10-06..10-07· [web-performance]
links:none on file
slides:none on file

Profile with tools like heaptrack, Valgrind and perf to find hidden heap allocations and cache misses; temporary QString conversions cause UTF‑8→UTF‑16 work and allocations unless you use QStringLiteral or QLatin1String; prefer QStringRef and QStringBuilder to avoid repeated copies; use QVector with movable types instead of QList to avoid per-item heap allocs; use non‑recursive QMutex (recursive is ~2x slower), QElapsedTimer (about 4x faster) or UTC time access (10–20x faster) and QDir::entryInfoList to avoid repeated stats (up to ~100x).

AI-written summary · about

  1. 0:00Introduction to optimization
  2. 1:06Profiling and benchmarking
  3. 3:57Anti-patterns in Qt code
  4. 4:39Implicit Qstring conversions
  5. 6:03Temporary allocations in loops
  6. 7:04Compile-time error prevention
  7. 8:10Qstring builder for appending
  8. 8:52Avoiding Qstring mid allocations
  9. 10:18When to use Qstring
  10. 11:03Qvector vs Qlist allocations
  11. 12:49Returning containers by value
  12. 14:37Qmap with pointers misuse
  13. 15:19Hashing strings in Qhash
  14. 16:45Iterating Qassociative containers
  15. 17:12Recursive vs non-recursive mutex
  16. 18:15DateTime performance pitfalls
  17. 19:20Qdir entry info optimization
  18. 20:26Tools and further reading
  19. 21:16Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.