Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#6340 closed enhancement (fixed)

Replace QMap with QHash where possible

Reported by: Matthias "mortalmatt" Dahl <devel@…> Owned by: Isaac Richards
Priority: trivial Milestone: unknown
Component: MythTV - General Version: head
Severity: low Keywords:
Cc: Ticket locked: yes

Description

Since QMap is rather expensive for lookups but also inserts, we should use QHash where we don't rely on a sorted vector.

Attachments (2)

DVBStreamHandler_replaceQMap.diff (4.9 KB) - added by Matthias "mortalmatt" Dahl <devel@…> 15 years ago.
MPEGStreamData_replaceQMap.diff (5.6 KB) - added by Matthias "mortalmatt" Dahl <devel@…> 15 years ago.

Download all attachments as: .zip

Change History (7)

Changed 15 years ago by Matthias "mortalmatt" Dahl <devel@…>

Changed 15 years ago by Matthias "mortalmatt" Dahl <devel@…>

comment:1 Changed 15 years ago by anonymous

The former two patches reduce the time spent in related Qt functions by approx. 50% during recording.

comment:2 Changed 15 years ago by danielk

Milestone: 0.22unknown
Priority: minortrivial
Severity: mediumlow

comment:3 Changed 15 years ago by shane

(In [20825]) Refs #6340. Convert settings cache from QMap to QHash for faster lookups.

comment:4 Changed 14 years ago by danielk

Resolution: fixed
Status: newclosed

comment:5 Changed 14 years ago by stuartm

Ticket locked: set
Note: See TracTickets for help on using tickets.