[mythtv-commits] [MythTV/mythtv] a9aa00: mythfilldatabase: reduce memory usage.
Peter Bennett
noreply at github.com
Fri Feb 21 17:14:50 UTC 2020
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: a9aa006139da24cbad861a2c25d57fa3f71aba2a
https://github.com/MythTV/mythtv/commit/a9aa006139da24cbad861a2c25d57fa3f71aba2a
Author: Hans Dingemans <jpldingemans at gmail.com>
Date: 2020-02-21 (Fri, 21 Feb 2020)
Changed paths:
M mythtv/programs/mythfilldatabase/filldata.cpp
M mythtv/programs/mythfilldatabase/xmltvparser.cpp
M mythtv/programs/mythfilldatabase/xmltvparser.h
Log Message:
-----------
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>
More information about the mythtv-commits
mailing list