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

MythTV noreply at mythtv.org
Mon May 4 11:15:05 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
---------------------------------------+-------------------------------

Comment (by Hans Dingemans <jpldingemans@…>):

 In [changeset:"f5d75a6de7c4ac668e1a64cdf31c7100bc81b65b/mythtv"
 f5d75a6de7/mythtv]:
             {{{
             #!CommitTicketReference repository="mythtv"
 revision="f5d75a6de7c4ac668e1a64cdf31c7100bc81b65b"
             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>
 (cherry picked from commit a9aa006139da24cbad861a2c25d57fa3f71aba2a)
             }}}

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


More information about the mythtv-commits mailing list