[mythtv-commits] Ticket #13517: Reducing memory usage by mythfilldatabase to 1/6 of original usage

MythTV noreply at mythtv.org
Wed Nov 20 18:57:49 UTC 2019


#13517: Reducing memory usage by mythfilldatabase to 1/6 of original usage
-------------------------------------------+--------------------------
     Reporter:  dingo35                    |      Owner:  (none)
         Type:  Bug Report - General       |     Status:  new
     Priority:  minor                      |  Milestone:  needs_triage
    Component:  MythTV - Mythfilldatabase  |    Version:  Master Head
     Severity:  medium                     |   Keywords:
Ticket locked:  0                          |
-------------------------------------------+--------------------------
 Mythfilldatabase uses QDomDocument to parse and store the XML data that is
 read; according to QDomDocument documentation this object is not meant to
 handle large XML files; QXmlStreamReader should be used in these
 situations.

 This pull request replaces QDomDocument by QXmlStreamreader; loading a 222
 MB XML file used 2,5GB on memory, after these changes it only uses 420MB,
 and speeds up the loading process by approx. 15% .

 Pull request made on github:
 https://github.com/MythTV/mythtv/pull/189

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13517>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list