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

MythTV noreply at mythtv.org
Mon Feb 24 08:43:23 UTC 2020


#13517: Reducing memory usage by mythfilldatabase to 1/6 of original usage
---------------------------------------+-------------------------------
 Reporter:  Hans Dingemans             |          Owner:  Peter Bennett
     Type:  Patch - Feature            |         Status:  closed
 Priority:  minor                      |      Milestone:  needs_triage
Component:  MythTV - Mythfilldatabase  |        Version:  Master Head
 Severity:  medium                     |     Resolution:  fixed
 Keywords:                             |  Ticket locked:  0
---------------------------------------+-------------------------------
Changes (by Hans Dingemans <jpldingemans@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"a9aa006139da24cbad861a2c25d57fa3f71aba2a/mythtv"
 a9aa00613/mythtv]:
             {{{
             #!CommitTicketReference repository="mythtv"
 revision="a9aa006139da24cbad861a2c25d57fa3f71aba2a"
             mythfilldatabase: reduce memory usage.

 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 commit replaces QDomDocument by QXmlStreamreader.

 A test showed that memory usage dropped from 5.6 GB to 698 MB.

 Fixes #13517

 Signed-off-by: Peter Bennett <pbennett at mythtv.org>
             }}}

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


More information about the mythtv-commits mailing list